Update rpi-resizerootfs

mmcblk0p1 versus sda1
This commit is contained in:
Francisco Jose R M 2020-06-20 11:28:24 +00:00
parent 0cf508221f
commit a6c0cc19ad

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
,+ ,+