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:
parent
7116da8018
commit
899e2b5748
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue