Change-Id: I97cab0128aeed3aeff2219f9208739a89df4f643
[Unit]
Description=Finalize OS update
DefaultDependencies=no
-#Requisite=update-post.service default.target
-#After=update-post.service default.target system-delayed-target-done.service
-#IgnoreOnIsolate=true
After=system-delayed-target-done.service
ConditionKernelCommandLine=bootmode=fota
[Service]
Type=oneshot
-SmackProcessLabel=System::Privileged
+SmackProcessLabel=System
ExecStart=/usr/share/upgrade/update-finalize.sh
RemainAfterExit=true
[Service]
Type=oneshot
-SmackProcessLabel=System::Privileged
+SmackProcessLabel=System
ExecStart=/usr/share/upgrade/update-post.sh
#!/bin/bash
PATH=/bin:/usr/bin:/sbin:/usr/sbin
-UPDATE_SCRIPT_DIR=@TZ_SYS_UPGRADE_SCRIPTS@
-UPDATE_DATA_DIR=/opt/data/update
-SDB_RULE=${UPDATE_DATA_DIR}/99-sdb-switch.rules
RW_MACRO=@TZ_SYS_UPGRADE@/rw-update-macro.inc
UPDATE_PREPARE_ERR=1
fi
+# TOOD: check if system is stable
if true; then
COMMIT_CHANGES
fi
+# TODO: Replace this by calling the appropriate commands
touch /tmp/set_BOOTING_OK
touch /tmp/booting_change_bootmode