Fixed bug in disk resize code.
This commit is contained in:
@@ -83,7 +83,7 @@ if [[ $diskSize -le 7 ]]; then
|
|||||||
# Handle sda2, sdb3 style
|
# Handle sda2, sdb3 style
|
||||||
diskDevice="$(echo "$diskSource" | sed 's/[0-9]*$//')"
|
diskDevice="$(echo "$diskSource" | sed 's/[0-9]*$//')"
|
||||||
fi
|
fi
|
||||||
sudo "${sudoFlags[@]}" parted --script "$diskDevice" resizepart 2 100%
|
echo "Yes" | sudo "${sudoFlags[@]}" parted ---pretend-input-tty "$diskDevice" resizepart 2 100%
|
||||||
sudo "${sudoFlags[@]}" resize2fs -f "$diskSource"
|
sudo "${sudoFlags[@]}" resize2fs -f "$diskSource"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user