diff --git a/rpi3-resizerootfs b/rpi3-resizerootfs index d7b461d..e62f699 100755 --- a/rpi3-resizerootfs +++ b/rpi3-resizerootfs @@ -4,6 +4,6 @@ roottmp=$(lsblk -l -o MAJ:MIN,MOUNTPOINT | grep '/$') rootpart=/dev/block/${roottmp% /} rootdev=${rootpart%:*}:0 -parted -s $rootdev resizepart 2 100% +echo 'y\n-1s\n' | parted $rootdev resizepart 2 resize2fs $rootpart