diff options
| author | Christian Schlüter <chschlue@gmail.com> | 2018-07-14 21:57:03 +0200 |
|---|---|---|
| committer | Christian Schlüter <chschlue@gmail.com> | 2018-07-14 21:57:03 +0200 |
| commit | d4874ba3dfc9b3bd6ab8e10300a31079ca42e89c (patch) | |
| tree | 27023fe97373baae2b147a465d415b571ddd690e | |
| parent | 9adfac696473dabcad0c9b3ae02098c019a01a1c (diff) | |
Screw parted, use sfdisk
| -rwxr-xr-x | rpi3-resizerootfs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rpi3-resizerootfs b/rpi3-resizerootfs index bdba954..32c861c 100755 --- a/rpi3-resizerootfs +++ b/rpi3-resizerootfs @@ -4,6 +4,10 @@ roottmp=$(lsblk -l -o MAJ:MIN,MOUNTPOINT | grep '/$') rootpart=/dev/block/${roottmp% /} rootdev=${rootpart%:*}:0 -printf "y\n-1s\n" | parted $rootdev resizepart 2 +sfdisk -f $rootdev -N 2 <<EOF +,+ +EOF + +partprobe resize2fs $rootpart |
