##// END OF EJS Templates
Fixes for Debian stretch release support
Fixes for Debian stretch release support

Fichier de la dernière révision:

r92:09d30ea4bc55
r93:d975bb85d0ff
Show More
50-firstboot.sh
49 lines | 1.5 KiB | 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
Jan Wagner
fix: ENABLE_CRYPTFS -> UBOOT, SPLITFS, EXPANDROOT - cleanup
r82 cat files/firstboot/10-begin.sh > "${ETCDIR}/rc.firstboot"
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56
# Ensure openssh server host keys are regenerated on first boot
Jan Wagner
Added: ENABLE_CRYPTFS - encrypted rootfs, use-latest-bootloader, cp-cleanup
r77 if [ "$ENABLE_SSHD" = true ] ; then
Jan Wagner
fix: ENABLE_CRYPTFS -> UBOOT, SPLITFS, EXPANDROOT - cleanup
r82 cat files/firstboot/21-generate-ssh-keys.sh >> "${ETCDIR}/rc.firstboot"
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 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
Jan Wagner
fix: ENABLE_CRYPTFS -> UBOOT, SPLITFS, EXPANDROOT - cleanup
r82 if [ "$ENABLE_CRYPTFS" = false ] ; then
cat files/firstboot/22-expandroot.sh >> "${ETCDIR}/rc.firstboot"
else
# Regenerate initramfs to remove encrypted root partition auto expand
cat files/firstboot/23-regenerate-initramfs.sh >> "${ETCDIR}/rc.firstboot"
fi
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56 fi
Jan Wagner
Added: ENABLE_REDUCE - down to 160MB used space,fix-resolve,fix-machineid
r73 # Ensure that dbus machine-id exists
Jan Wagner
fix: ENABLE_CRYPTFS -> UBOOT, SPLITFS, EXPANDROOT - cleanup
r82 cat files/firstboot/24-generate-machineid.sh >> "${ETCDIR}/rc.firstboot"
Jan Wagner
Added: ENABLE_REDUCE - down to 160MB used space,fix-resolve,fix-machineid
r73
# Create /etc/resolv.conf symlink
Jan Wagner
fix: ENABLE_CRYPTFS -> UBOOT, SPLITFS, EXPANDROOT - cleanup
r82 cat files/firstboot/25-create-resolv-symlink.sh >> "${ETCDIR}/rc.firstboot"
Jan Wagner
Added: ENABLE_REDUCE - down to 160MB used space,fix-resolve,fix-machineid
r73
drtyhlpr
Added Debian stretch release support
r92 # Configure automatic network interface names
if [ "$ENABLE_IFNAMES" = true ] ; then
cat files/firstboot/26-config-ifnames.sh >> "${ETCDIR}/rc.firstboot"
fi
Jan Wagner
spliting more files, fix-uboot, fix-fbturbo, fix-locale
r67 # Finalize rc.firstboot script
Jan Wagner
fix: ENABLE_CRYPTFS -> UBOOT, SPLITFS, EXPANDROOT - cleanup
r82 cat files/firstboot/99-finish.sh >> "${ETCDIR}/rc.firstboot"
chmod +x "${ETCDIR}/rc.firstboot"
Filip Pytloun
Refactor: split bootstrap actions and allow custom
r56
drtyhlpr
Added Debian stretch release support
r92 # Install default rc.local if it does not exist
if [ ! -f "${ETCDIR}/rc.local" ] ; then
install_exec files/etc/rc.local "${ETCDIR}/rc.local"
fi
Jan Wagner
spliting more files, fix-uboot, fix-fbturbo, fix-locale
r67 # Add rc.firstboot script to rc.local
Jan Wagner
fix: ENABLE_CRYPTFS -> UBOOT, SPLITFS, EXPANDROOT - cleanup
r82 sed -i '/exit 0/d' "${ETCDIR}/rc.local"
echo /etc/rc.firstboot >> "${ETCDIR}/rc.local"
echo exit 0 >> "${ETCDIR}/rc.local"