This commit is contained in:
2019-10-04 09:02:55 -07:00
parent d9f759a43c
commit 0017b4ec4a
8 changed files with 213 additions and 0 deletions

View File

@@ -8,6 +8,16 @@ else
/etc/systemd/system/multi-user.target.wants/raspberrypi-initial-setup.service
# we only need to run once
rm -rf /boot/rc.local.txt /boot/root.overlay
# after the above rsync has replaced the init_resize.sh with our
# more sane version (it only doubles the size of the root, not
# consuming the entire sd card), set the kernel command line to use the
# init resizer on the next boot (like raspbian normally does)
# this will only run this once, as we have already deleted ourselves in
# the previous command.
sed -i 's|$| init=/usr/lib/raspi-config/init_resize.sh|' /boot/cmdline.txt
fi
reboot