diff options
author | INSUN PYO <insun.pyo@samsung.com> | 2019-11-11 22:42:22 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.ap-northeast-2.compute.internal> | 2019-11-11 22:42:22 +0000 |
commit | ed914879d7ccee6f265bacc2517e75c456b7fb57 (patch) | |
tree | 2d3921e186755169a018e7ccf95552692ee6a44c | |
parent | 371a5daeb972edc6f5c4845eafb4f7549fc40b2f (diff) | |
parent | 8737990ffda58593c02fbd6d9ff5a64f7327cdfb (diff) | |
download | initrd-accepted/tizen_5.5_unified.tar.gz initrd-accepted/tizen_5.5_unified.tar.bz2 initrd-accepted/tizen_5.5_unified.zip |
Merge "Fix resizefs: corrupted filesystem can not perform resizefs" into tizen_5.5submit/tizen_5.5_wearable_hotfix/20201026.184304submit/tizen_5.5/20191111.224438accepted/tizen/5.5/unified/wearable/hotfix/20201027.113216accepted/tizen/5.5/unified/20191113.123204tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5accepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified
-rwxr-xr-x | scripts/init.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/init.sh b/scripts/init.sh index 7b884de..60235e2 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -55,6 +55,7 @@ if [ x$ROOTFS != "x" ] then if [ "$NEED_RESIZEFS" = "1" ] then + /sbin/fsck -y $ROOTFS /sbin/resize2fs -f $ROOTFS fi /sbin/fsck -y $ROOTFS @@ -68,6 +69,7 @@ if [ x"$DATAFS" != "x" ] then if [ "$NEED_RESIZEFS" = "1" ] then + /sbin/fsck -y $DATAFS /sbin/resize2fs -f $DATAFS /sbin/fsck -y $DATAFS /bin/mount $DATAFS /sysroot/opt @@ -80,6 +82,7 @@ if [ x"$USERFS" != "x" -a "$USERFS_ENCRYPTED" = "0" ] then if [ "$NEED_RESIZEFS" = "1" ] then + /sbin/fsck -y $USERFS /sbin/resize2fs -f $USERFS fi /sbin/fsck -y $USERFS @@ -99,6 +102,7 @@ if [ x$MODULES != "x" ] then if [ "$NEED_RESIZEFS" = "1" ] then + /sbin/fsck -y $MODULES /sbin/resize2fs -f $MODULES fi /sbin/fsck -y $MODULES |