##// END OF EJS Templates
README.md fix, rm-lost-file
README.md fix, rm-lost-file

Fichier de la dernière révision:

r73:62453b92723b
r74:d4ab3cfce58c
Show More
50-firstboot.sh
35 lines | 966 B | application/x-sh | BashLexer
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 #
# First boot actions
#
Jan Wagner
spliting more files, fix-uboot, fix-fbturbo, fix-locale
r67 # Load utility functions
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 . ./functions.sh
Jan Wagner
spliting more files, fix-uboot, fix-fbturbo, fix-locale
r67 # Prepare rc.firstboot script
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 cat files/firstboot/10-begin.sh > $R/etc/rc.firstboot
# Ensure openssh server host keys are regenerated on first boot
if [ "$ENABLE_SSHD" = true ] ; then
cat files/firstboot/21-generate-ssh-keys.sh >> $R/etc/rc.firstboot
rm -f $R/etc/ssh/ssh_host_*
fi
Jan Wagner
spliting more files, fix-uboot, fix-fbturbo, fix-locale
r67 # Prepare filesystem auto expand
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 if [ "$EXPANDROOT" = true ] ; then
cat files/firstboot/22-expandroot.sh >> $R/etc/rc.firstboot
fi
Jan Wagner
Added: ENABLE_REDUCE - down to 160MB used space,fix-resolve,fix-machineid
r73 # Ensure that dbus machine-id exists
cat files/firstboot/23-generate-machineid.sh >> $R/etc/rc.firstboot
# Create /etc/resolv.conf symlink
cat files/firstboot/24-create-resolv-symlink.sh >> $R/etc/rc.firstboot
Jan Wagner
spliting more files, fix-uboot, fix-fbturbo, fix-locale
r67 # Finalize rc.firstboot script
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 cat files/firstboot/99-finish.sh >> $R/etc/rc.firstboot
chmod +x $R/etc/rc.firstboot
Jan Wagner
spliting more files, fix-uboot, fix-fbturbo, fix-locale
r67 # Add rc.firstboot script to rc.local
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 sed -i '/exit 0/d' $R/etc/rc.local
echo /etc/rc.firstboot >> $R/etc/rc.local
echo exit 0 >> $R/etc/rc.local