mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #26912 from knedlsepp/fix-autoResize
nixos: Force check the filesystem before resizing
This commit is contained in:
commit
8df6d351c4
1 changed files with 1 additions and 0 deletions
|
@ -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