2018-07-10 12:11:05 +01:00
|
|
|
#!/bin/sh
|
2017-10-08 21:18:48 +01:00
|
|
|
|
2018-07-10 12:11:05 +01:00
|
|
|
roottmp=$(lsblk -l -o MAJ:MIN,MOUNTPOINT | grep '/$')
|
|
|
|
rootpart=/dev/block/${roottmp% /}
|
|
|
|
rootdev=${rootpart%:*}:0
|
2017-10-08 21:18:48 +01:00
|
|
|
|
2018-07-10 21:42:06 +01:00
|
|
|
echo 'y\n-1s\n' | parted $rootdev resizepart 2
|
2017-10-08 21:18:48 +01:00
|
|
|
|
2018-07-10 12:11:05 +01:00
|
|
|
resize2fs $rootpart
|