Unmount inform partition to clear reboot-param.bin explicitly 01/200101/4
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 10 Jan 2019 06:27:22 +0000 (15:27 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Wed, 20 Feb 2019 00:47:07 +0000 (00:47 +0000)
Before synchronizing changes on reboot-param.bin for clear boot
parameter, flash-manager can be rebooted by fatal errors and thus
the target re-enters download mode unintendly. To prevent this,
unmount inform partition right after clearing parameter file.

Change-Id: Ibd5dc72f31cb6b869d7164185ff1a894d615fc47
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
scripts/flash-init.sh

index 40a656b..dd345d5 100755 (executable)
@@ -11,6 +11,7 @@ REBOOT="/usr/sbin/reboot"
 IP="/usr/sbin/ip"
 IFCONFIG="/usr/sbin/ifconfig"
 GREP="/usr/bin/grep"
+SYNC="/usr/bin/sync"
 
 NETIF="eth0"
 
@@ -19,6 +20,8 @@ NETIF="eth0"
 #------------------------------------------------
 clear_bootmode() {
        echo "" > ${INFORM_MOUNT_PATH}/${INFORM_FILE}
+       "$SYNC"
+       "$UMOUNT" ${INFORM_MOUNT_PATH}
 }
 
 #------------------------------------------------