diff options
author | Hyotaek Shim <hyotaek.shim@samsung.com> | 2018-04-18 20:57:19 +0900 |
---|---|---|
committer | Hyotaek Shim <hyotaek.shim@samsung.com> | 2018-04-18 20:57:19 +0900 |
commit | c39a7ca402e5b0e5c855d20a2fdfb4ece04f31b9 (patch) | |
tree | 6298952e22d8f514dc4a45268e54d7da6b2914a7 | |
parent | 8eccd5726c67c7b550d73d9ce5eff2a13b094ceb (diff) | |
download | initrd-c39a7ca402e5b0e5c855d20a2fdfb4ece04f31b9.tar.gz initrd-c39a7ca402e5b0e5c855d20a2fdfb4ece04f31b9.tar.bz2 initrd-c39a7ca402e5b0e5c855d20a2fdfb4ece04f31b9.zip |
Perform fsck on each bootingsubmit/tizen/20180418.115925accepted/tizen/unified/20180419.075955
Change-Id: I063c8bbf2f9ca0b0c995a1dd8260bfab7efe41f6
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
-rwxr-xr-x | scripts/init.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/init.sh b/scripts/init.sh index 4a8f064..60aa787 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -30,6 +30,7 @@ fi FIRSTBOOT=1 if [ x"$DATAFS" != "x" ] then + /sbin/fsck -y $DATAFS /bin/mount $DATAFS /opt if [ -e /opt/var/.fsck_done ] @@ -46,8 +47,8 @@ then if [ "$FIRSTBOOT" = "1" ] then /sbin/resize2fs -f $ROOTFS - /sbin/fsck -y $ROOTFS fi + /sbin/fsck -y $ROOTFS /bin/mount $ROOTFS /sysroot -o rw else echo "WARNING : THERE IS NO ROOTFS." @@ -59,7 +60,6 @@ then if [ "$FIRSTBOOT" = "1" ] then /sbin/resize2fs -f $DATAFS - /sbin/fsck -y $DATAFS /bin/mount $DATAFS /sysroot/opt else /bin/mount -M /opt /sysroot/opt @@ -81,8 +81,8 @@ then if [ "$FIRSTBOOT" = "1" ] then /sbin/resize2fs -f $MODULES - /sbin/fsck -y $MODULES fi + /sbin/fsck -y $MODULES /bin/mount $MODULES /sysroot/usr/lib/modules fi |