3
0
Fork 0
forked from mirrors/nixpkgs

Force check the filesystem before resizing

The message buffer of the kernel lists
> Please run 'e2fsck -f /dev/disk/by-label/nixos' first.
as the output of the command `resize2fs "$device"`.
This fixes NixOS/nixpkgs#26910.
This commit is contained in:
Josef Kemetmueller 2017-06-27 22:09:05 +02:00
parent 7116da8018
commit 899e2b5748

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
;;