mirror of
https://gitlab.com/alemaire/image-specs.git
synced 2025-01-11 04:33:30 +00:00
Screw parted, use sfdisk
This commit is contained in:
parent
9adfac6964
commit
d4874ba3df
@ -4,6 +4,10 @@ roottmp=$(lsblk -l -o MAJ:MIN,MOUNTPOINT | grep '/$')
|
|||||||
rootpart=/dev/block/${roottmp% /}
|
rootpart=/dev/block/${roottmp% /}
|
||||||
rootdev=${rootpart%:*}:0
|
rootdev=${rootpart%:*}:0
|
||||||
|
|
||||||
printf "y\n-1s\n" | parted $rootdev resizepart 2
|
sfdisk -f $rootdev -N 2 <<EOF
|
||||||
|
,+
|
||||||
|
EOF
|
||||||
|
|
||||||
|
partprobe
|
||||||
|
|
||||||
resize2fs $rootpart
|
resize2fs $rootpart
|
||||||
|
Loading…
Reference in New Issue
Block a user