nixos/stage-1: added F2FS resizing

F2FS is used on Raspberry Pi-like devices to enhance SD card performance. Allowing F2FS resizing would help in automatic deploying of SD card images without a Linux box to resize the file system offline.
This commit is contained in:
Victor Shlein 2018-06-19 01:25:00 +03:00
parent 8807039549
commit c24e917325

View file

@ -336,6 +336,10 @@ mountFS() {
echo "resizing $device..."
e2fsck -fp "$device"
resize2fs "$device"
else [ "$fsType" = f2fs ]; then
echo "resizing $device..."
fsck.f2fs -fp "$device"
resize.f2fs "$device"
fi
;;
esac