diff options
-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 |