growpart shipped along with ucloud-init
This commit is contained in:
parent
ed0c072afb
commit
71372428d1
2 changed files with 815 additions and 7 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue