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.
Josef Kemetmueller 8 years ago 899e2b57 7116da80
··· 301 301 *x-nixos.autoresize*) 302 302 if [ "$fsType" = ext2 -o "$fsType" = ext3 -o "$fsType" = ext4 ]; then 303 303 echo "resizing $device..." 304 304 + e2fsck -fp "$device" 304 305 resize2fs "$device" 305 306 fi 306 307 ;;