Fix parted invocation again
This commit is contained in:
parent
6e0b7a4a96
commit
9adfac6964
|
@ -4,6 +4,6 @@ roottmp=$(lsblk -l -o MAJ:MIN,MOUNTPOINT | grep '/$')
|
|||
rootpart=/dev/block/${roottmp% /}
|
||||
rootdev=${rootpart%:*}:0
|
||||
|
||||
echo 'y\n-1s\n' | parted $rootdev resizepart 2
|
||||
printf "y\n-1s\n" | parted $rootdev resizepart 2
|
||||
|
||||
resize2fs $rootpart
|
||||
|
|
Loading…
Reference in New Issue