mirror of
https://gitlab.com/alemaire/image-specs.git
synced 2025-01-10 23:33:29 +00:00
Update rpi-resizerootfs
mmcblk0p1 versus sda1
This commit is contained in:
parent
0cf508221f
commit
a6c0cc19ad
@ -1,9 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
roottmp=$(lsblk -l -o NAME,MOUNTPOINT | grep '/$')
|
||||
rootpart=/dev/${roottmp%% */}
|
||||
rootdev=${rootpart%2}
|
||||
rootdev=${rootdev%p}
|
||||
rootpart="$(findmnt -n -o SOURCE /)"
|
||||
rootdev="/dev/$(lsblk -no pkname "$rootpart")"
|
||||
|
||||
flock $rootdev sfdisk -f $rootdev -N 2 <<EOF
|
||||
,+
|
||||
|
Loading…
Reference in New Issue
Block a user