Change references from rpi3-* to rpi-*

This commit is contained in:
Gunnar Wolf
2019-07-18 21:18:59 -03:00
parent a898b8c2bc
commit cc0780ee69
8 changed files with 343 additions and 17 deletions

24
rpi-resizerootfs Executable file
View File

@ -0,0 +1,24 @@
#!/bin/sh
roottmp=$(lsblk -l -o NAME,MOUNTPOINT | grep '/$')
rootpart=/dev/${roottmp%% */}
rootdev=${rootpart%2}
rootdev=${rootdev%p}
flock $rootdev sfdisk -f $rootdev -N 2 <<EOF
,+
EOF
sleep 5
udevadm settle
sleep 5
flock $rootdev partprobe $rootdev
mount -o remount,rw $rootpart
resize2fs $rootpart
exit 0