diff --git a/pmax.sh b/pmax.sh new file mode 100644 index 0000000..e5f6b96 --- /dev/null +++ b/pmax.sh @@ -0,0 +1,24 @@ +#! /bin/sh +apk add --no-cache parted e2fsprogs-extra +lsblk +read -r -p "Do you want to expand / partition to max available size? Choose \"No\" to continue without expanding partition [y/N]: " response + case $response in + [yY][eE][sS]|[yY]) + echo "Expanding / partition..." + PARTEND=`printf %s\\n 'unit GB print list' | parted | grep "Disk /dev/sda" | cut -d' ' -f3 | tr -d GB`GB + parted /dev/sda ---pretend-input-tty <