mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03: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