diff --git a/rootfs-overlay/arm/etc/part-expand.sh b/rootfs-overlay/arm/etc/part-expand.sh new file mode 100755 index 0000000..82aa8b8 --- /dev/null +++ b/rootfs-overlay/arm/etc/part-expand.sh @@ -0,0 +1,24 @@ +#!/bin/sh +# This should resize the sdcard to its full capacity. + +[ -f /etc/part-expanded ] && exit 0 + +cat < /etc/part-expanded diff --git a/rootfs-overlay/common/etc/rc.local b/rootfs-overlay/common/etc/rc.local index 3533822..4f5e2d4 100755 --- a/rootfs-overlay/common/etc/rc.local +++ b/rootfs-overlay/common/etc/rc.local @@ -2,6 +2,7 @@ # rc.local for base images [ -f /etc/ssh/ssh_host_rsa_key.pub ] || ssh-keygen -A +[ -f /etc/part-expand.sh ] || /etc/part-expand.sh netdata