Fix parted invocation

This commit is contained in:
Christian Schlüter 2018-07-10 22:42:06 +02:00
parent dc9ced8ed8
commit 6e0b7a4a96
No known key found for this signature in database
GPG Key ID: 4955EB2D53B5CBD2
1 changed files with 1 additions and 1 deletions

View File

@ -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