mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
Merge pull request #102171 from grahamc/faster-ext-resize
stage-1: modprobe ext{2,3,4} before resizing (so resizing takes less than 45 minutes)
This commit is contained in:
commit
b34cf366aa
@ -356,6 +356,7 @@ mountFS() {
|
|||||||
case $options in
|
case $options in
|
||||||
*x-nixos.autoresize*)
|
*x-nixos.autoresize*)
|
||||||
if [ "$fsType" = ext2 -o "$fsType" = ext3 -o "$fsType" = ext4 ]; then
|
if [ "$fsType" = ext2 -o "$fsType" = ext3 -o "$fsType" = ext4 ]; then
|
||||||
|
modprobe "$fsType"
|
||||||
echo "resizing $device..."
|
echo "resizing $device..."
|
||||||
e2fsck -fp "$device"
|
e2fsck -fp "$device"
|
||||||
resize2fs "$device"
|
resize2fs "$device"
|
||||||
|
Loading…
Reference in New Issue
Block a user