diff options
author | Jan Wagner <mail@jwagner.eu> | 2016-03-12 16:07:25 +0100 |
---|---|---|
committer | Jan Wagner <mail@jwagner.eu> | 2016-03-12 16:07:25 +0100 |
commit | 4aa8ac6985680eb12ba5c82422ecc50e2bb55447 (patch) | |
tree | a85e15805b773c5218ccb0a279490c98eec41e81 /bootstrap.d/50-firstboot.sh | |
parent | 80185bd93dd9eecb1b41ef8ac9a186aff19ab33e (diff) | |
download | rpi2-gen-image-4aa8ac6985680eb12ba5c82422ecc50e2bb55447.tar.gz rpi2-gen-image-4aa8ac6985680eb12ba5c82422ecc50e2bb55447.tar.bz2 rpi2-gen-image-4aa8ac6985680eb12ba5c82422ecc50e2bb55447.zip |
spliting more files, fix-uboot, fix-fbturbo, fix-locale
Diffstat (limited to 'bootstrap.d/50-firstboot.sh')
-rw-r--r-- | bootstrap.d/50-firstboot.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bootstrap.d/50-firstboot.sh b/bootstrap.d/50-firstboot.sh index b9f1d76..78197fd 100644 --- a/bootstrap.d/50-firstboot.sh +++ b/bootstrap.d/50-firstboot.sh @@ -2,8 +2,10 @@ # First boot actions # +# Load utility functions . ./functions.sh +# Prepare rc.firstboot script cat files/firstboot/10-begin.sh > $R/etc/rc.firstboot # Ensure openssh server host keys are regenerated on first boot @@ -12,13 +14,16 @@ if [ "$ENABLE_SSHD" = true ] ; then rm -f $R/etc/ssh/ssh_host_* fi +# Prepare filesystem auto expand if [ "$EXPANDROOT" = true ] ; then cat files/firstboot/22-expandroot.sh >> $R/etc/rc.firstboot fi +# Finalize rc.firstboot script cat files/firstboot/99-finish.sh >> $R/etc/rc.firstboot chmod +x $R/etc/rc.firstboot +# Add rc.firstboot script to rc.local sed -i '/exit 0/d' $R/etc/rc.local echo /etc/rc.firstboot >> $R/etc/rc.local echo exit 0 >> $R/etc/rc.local |