Run offline-update.target in ramdisk-recovery 64/311164/2 tizen
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Wed, 15 May 2024 14:09:41 +0000 (16:09 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Tue, 28 May 2024 16:18:10 +0000 (18:18 +0200)
The system-update.target is a common part of offline and online
upgrade.

Change-Id: I253b80ffc3a350c76f5e511803e2e898eb64f461

src/bootmode-fota/fota-init.sh

index 14e25b4..038a634 100755 (executable)
@@ -172,10 +172,10 @@ do_rw_update() {
        echo "Change into rw update mode" >> ${INT_LOG_FILE}
 
        /sbin/progress_restart RW &
-       # Go to system-update.target
+       # Go to offline-update.target
        if [ $$ = 1 ]; then
                cd ${FAKE_ROOT}
-               exec /bin/chroot . /usr/lib/systemd/systemd --unit=system-update.target $@
+               exec /bin/chroot . /usr/lib/systemd/systemd --unit=offline-update.target $@
        fi
        do_reboot
 }