diff --git a/nixos/modules/system/boot/stage-1-init.sh b/nixos/modules/system/boot/stage-1-init.sh index 227ab450002..f2084842db8 100644 --- a/nixos/modules/system/boot/stage-1-init.sh +++ b/nixos/modules/system/boot/stage-1-init.sh @@ -336,7 +336,7 @@ mountFS() { echo "resizing $device..." e2fsck -fp "$device" resize2fs "$device" - else [ "$fsType" = f2fs ]; then + elif [ "$fsType" = f2fs ]; then echo "resizing $device..." fsck.f2fs -fp "$device" resize.f2fs "$device"