Merge pull request #26912 from knedlsepp/fix-autoResize

nixos: Force check the filesystem before resizing
This commit is contained in:
Graham Christensen 2017-07-16 16:54:54 -04:00 committed by GitHub
commit 8df6d351c4

View file

@ -301,6 +301,7 @@ mountFS() {
*x-nixos.autoresize*)
if [ "$fsType" = ext2 -o "$fsType" = ext3 -o "$fsType" = ext4 ]; then
echo "resizing $device..."
e2fsck -fp "$device"
resize2fs "$device"
fi
;;