##// END OF EJS Templates
-Enable_nonfree no longer enables non-free packages while install. now it enables non free packacges in sources.list...
-Enable_nonfree no longer enables non-free packages while install. now it enables non free packacges in sources.list -Fix: check for kernel_threads -Fix: Cryptfs Kernel parameters -Renamed: Kernel_reduce renamed for better varaible grouping to Reduce_kernel -Fix: defaultgov check in 13-kernel.sh -Dropped: Enable_DHCP - now seperated in Enable_eth_dhcp and enable_wifi_dhcp -Feature: Dhcp and static configuration of both wired and wifi interface -Feature: added uart_2ndstage=1 for even more uart output in early stages -Renamed: eth.network and wlan.network to eth0 and wlan0 -Improve: sanity check for stattic ip -Renamed: Enable_SSHD to SSH_Enable for better variable gouping -Renamed PASSWORD to ROOT_PASSWORD for better distinction with USER_PASSWORD -Improved: Enable_dbus check on firstboot (generate-machineid) -improved: Reduce if ipv6 disable remove xtables -Improved: recomend $Release if xorg is enabled on some rpi models -Install wpasupplicant if Enabled_wireless is true -Reorder key:value in rpi23-gen-image.sh -fixing some wrong var assingments and missing declarations in rpi23-gen-image.sh -updated precompiled kernel links - changed the following default values: "Reduce_*,cryptfs_keysize (support for 0 and 1),rpi_model" - added a complete config (rpi3buster-fullconfig) in sync with new order of key:value in rpi23-gen-image.sh thx to trampeltier@fsfe for testing a lot!

Fichier de la dernière révision:

r732:4551fcf06923
r732:4551fcf06923
Show More
50-firstboot.sh
56 lines | 1.7 KiB | application/x-sh | BashLexer
#
# First boot actions
#
# Load utility functions
. ./functions.sh
# Prepare rc.firstboot script
cat files/firstboot/10-begin.sh > "${ETC_DIR}/rc.firstboot"
# Prepare filesystem auto expand
if [ "$EXPANDROOT" = true ] ; then
if [ "$ENABLE_CRYPTFS" = false ] ; then
cat files/firstboot/20-expandroot.sh >> "${ETC_DIR}/rc.firstboot"
else
# Regenerate initramfs to remove encrypted root partition auto expand
cat files/firstboot/21-regenerate-initramfs.sh >> "${ETC_DIR}/rc.firstboot"
fi
# Restart dphys-swapfile so the size of the swap file is relative to the resized root partition
if [ "$ENABLE_DPHYSSWAP" = true ] ; then
cat files/firstboot/23-restart-dphys-swapfile.sh >> "${ETC_DIR}/rc.firstboot"
fi
fi
# Ensure openssh server host keys are regenerated on first boot
if [ "$SSH_ENABLE" = true ] ; then
cat files/firstboot/30-generate-ssh-keys.sh >> "${ETC_DIR}/rc.firstboot"
fi
if [ "$ENABLE_DBUS" = true ] ; then
# Ensure that dbus machine-id exists
cat files/firstboot/40-generate-machineid.sh >> "${ETC_DIR}/rc.firstboot"
fi
# Create /etc/resolv.conf symlink
cat files/firstboot/41-create-resolv-symlink.sh >> "${ETC_DIR}/rc.firstboot"
# Configure automatic network interface names
if [ "$ENABLE_IFNAMES" = true ] ; then
cat files/firstboot/42-config-ifnames.sh >> "${ETC_DIR}/rc.firstboot"
fi
# Finalize rc.firstboot script
cat files/firstboot/99-finish.sh >> "${ETC_DIR}/rc.firstboot"
chmod +x "${ETC_DIR}/rc.firstboot"
# Install default rc.local if it does not exist
if [ ! -f "${ETC_DIR}/rc.local" ] ; then
install_exec files/etc/rc.local "${ETC_DIR}/rc.local"
fi
# Add rc.firstboot script to rc.local
sed -i '/exit 0/d' "${ETC_DIR}/rc.local"
echo /etc/rc.firstboot >> "${ETC_DIR}/rc.local"
echo exit 0 >> "${ETC_DIR}/rc.local"