diff options
| author | Christian Schlüter <chschlue@gmail.com> | 2018-07-10 22:42:06 +0200 |
|---|---|---|
| committer | Christian Schlüter <chschlue@gmail.com> | 2018-07-10 22:42:06 +0200 |
| commit | 6e0b7a4a96a17efc576717384287bd2718c4976f (patch) | |
| tree | 43dfa450142cc1bc62c2ead36fcf4eb6c9dacaf2 | |
| parent | dc9ced8ed8098883a76608dd31f63762e0ad0473 (diff) | |
Fix parted invocation
| -rwxr-xr-x | rpi3-resizerootfs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpi3-resizerootfs b/rpi3-resizerootfs index d7b461d..e62f699 100755 --- a/rpi3-resizerootfs +++ b/rpi3-resizerootfs @@ -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 |
