growpart shipped along with ucloud-init

This commit is contained in:
ahmadbilalkhalid 2019-10-30 21:18:30 +05:00
commit 71372428d1
2 changed files with 815 additions and 7 deletions

View file

@ -50,13 +50,7 @@ grow_partition() {
tput setaf 2; tput bold; echo "Growing Partition"; tput sgr0;
# TODO: Try to replace the growpart to parted
wget https://git.launchpad.net/ubuntu/+source/cloud-utils/plain/bin/growpart -q
if [ -e growpart ]; then
sh ./growpart -q /dev/vda 3 > /dev/null; rm growpart
else
tput setaf 1; echo "growpart couldn't be downloaded"
exit 1
fi
sh ./growpart -q /dev/vda 3 > /dev/null; rm growpart
}
make_script_verbose() {