mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
Merge pull request #26912 from knedlsepp/fix-autoResize
nixos: Force check the filesystem before resizing
This commit is contained in:
commit
8df6d351c4
@ -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 New Issue
Block a user