Merge branch 'patch-1' into 'master'

Update rpi-resizerootfs

See merge request raspi-team/image-specs!17
This commit is contained in:
Gunnar Wolf 2020-07-05 14:35:15 +00:00
commit 318ff053a9
1 changed files with 2 additions and 4 deletions

View File

@ -1,9 +1,7 @@
#!/bin/sh #!/bin/sh
roottmp=$(lsblk -l -o NAME,MOUNTPOINT | grep '/$') rootpart="$(findmnt -n -o SOURCE /)"
rootpart=/dev/${roottmp%% */} rootdev="/dev/$(lsblk -no pkname "$rootpart")"
rootdev=${rootpart%2}
rootdev=${rootdev%p}
flock $rootdev sfdisk -f $rootdev -N 2 <<EOF flock $rootdev sfdisk -f $rootdev -N 2 <<EOF
,+ ,+