summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyotaek Shim <hyotaek.shim@samsung.com>2018-04-18 20:57:19 +0900
committerHyotaek Shim <hyotaek.shim@samsung.com>2018-04-18 20:57:19 +0900
commitc39a7ca402e5b0e5c855d20a2fdfb4ece04f31b9 (patch)
tree6298952e22d8f514dc4a45268e54d7da6b2914a7
parent8eccd5726c67c7b550d73d9ce5eff2a13b094ceb (diff)
downloadinitrd-c39a7ca402e5b0e5c855d20a2fdfb4ece04f31b9.tar.gz
initrd-c39a7ca402e5b0e5c855d20a2fdfb4ece04f31b9.tar.bz2
initrd-c39a7ca402e5b0e5c855d20a2fdfb4ece04f31b9.zip
Change-Id: I063c8bbf2f9ca0b0c995a1dd8260bfab7efe41f6 Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
-rwxr-xr-xscripts/init.sh6
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