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:
Graham Christensen 2020-10-30 16:12:50 -04:00 committed by GitHub
commit b34cf366aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,6 +356,7 @@ mountFS() {
case $options in
*x-nixos.autoresize*)
if [ "$fsType" = ext2 -o "$fsType" = ext3 -o "$fsType" = ext4 ]; then
modprobe "$fsType"
echo "resizing $device..."
e2fsck -fp "$device"
resize2fs "$device"