umount usb(otg) memory before delete files in/opt 70/253070/1 accepted/tizen/6.0/unified/hotfix/20210204.110932 submit/tizen_6.0/20210204.071723 submit/tizen_6.0/20210209.014244 submit/tizen_6.0_hotfix/20210204.071831 submit/tizen_6.0_hotfix/20210204.072427 submit/tizen_6.0_hotfix/20210204.072756
authorkiso.chang <kiso.chang@samsung.com>
Thu, 4 Feb 2021 07:05:58 +0000 (16:05 +0900)
committerkiso.chang <kiso.chang@samsung.com>
Thu, 4 Feb 2021 07:08:07 +0000 (16:08 +0900)
Change-Id: I24876cd87855bd03f8bf5a9e42ed351840c6bd9e
Signed-off-by: kiso.chang <kiso.chang@samsung.com>
script/run-factory-reset.sh

index 54a714bc9c66a0d4133d932703f77eee3a3a157a..8f3b279d4d5647af16d0c06c1895bd0dbc1075c2 100755 (executable)
@@ -111,15 +111,17 @@ check_fail() {
                # reboot and retry
                /bin/sync
                /sbin/reboot
-       fi
+       fisp
 }
 
 # mount and umount partitions
 fs_ready() {
-# data in microsd should be preserved.
+# data in microsd and usb(otg) storage should be preserved.
        /bin/umount -lf ${OPT}/storage/sdcard
+       /bin/umount -lf ${OPT}/media/*
        #for encryption. If encrypted, it is mounted one more time as encryptfs.
        /bin/umount -lf ${OPT}/storage/sdcard
+       /bin/umount -lf ${OPT}/media/*
 # modem binary images should be preserved.
        /bin/umount -lf ${OPT}/modem
 # phone usr partition should be reset