#! /bin/sh echo 'Instalando dependencias' apk add --no-cache parted e2fsprogs-extra echo '******' echo "ANTES:" echo '******' 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 <