Merge branch 'rootfs' into 'master'

rootfs subdirectory

See merge request raspi-team/image-specs!12
This commit is contained in:
Gunnar Wolf
2020-08-15 05:06:18 +00:00
9 changed files with 8 additions and 8 deletions

View File

@ -0,0 +1,22 @@
#!/bin/sh
rootpart="$(findmnt -n -o SOURCE /)"
rootdev="/dev/$(lsblk -no pkname "$rootpart")"
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