diff --git a/README.md b/README.md index d7c90ef..01021c5 100644 --- a/README.md +++ b/README.md @@ -273,6 +273,15 @@ Create an initramfs that that will be loaded during the Linux startup process. ` ##### `ENABLE_IFNAMES`=true Enable automatic assignment of predictable, stable network interface names for all local Ethernet, WLAN interfaces. This might create complex and long interface names. +##### `ENABLE_SPLASH`=true +Enable default Raspberry Pi boot up rainbow splash screen. + +##### `ENABLE_LOGO`=true +Enable default Raspberry Pi console logo (image of four raspberries in the top left corner). + +##### `ENABLE_SILENT_BOOT`=false +Set the verbosity of console messages shown during boot up to a strict minimum. + ##### `DISABLE_UNDERVOLT_WARNINGS`= Disable RPi2/3 under-voltage warnings and overlays. Setting the parameter to `1` will disable the warning overlay. Setting it to `2` will additionally allow RPi2/3 turbo mode when low-voltage is present. diff --git a/bootstrap.d/15-rpi-config.sh b/bootstrap.d/15-rpi-config.sh index d7d0239..4510e83 100644 --- a/bootstrap.d/15-rpi-config.sh +++ b/bootstrap.d/15-rpi-config.sh @@ -74,9 +74,24 @@ else CMDLINE="${CMDLINE} net.ifnames=1" fi +# Disable Raspberry Pi console logo +if [ "$ENABLE_LOGO" = false ] ; then + CMDLINE="${CMDLINE} logo.nologo" +fi + +# Strictly limit verbosity of boot up console messages +if [ "$ENABLE_SILENT_BOOT" = true ] ; then + CMDLINE="${CMDLINE} quiet loglevel=0 rd.systemd.show_status=auto rd.udev.log_priority=0" +fi + # Install firmware config install_readonly files/boot/config.txt "${BOOT_DIR}/config.txt" +# Disable Raspberry Pi console logo +if [ "$ENABLE_SLASH" = false ] ; then + echo "disable_splash=1" >> "${BOOT_DIR}/config.txt" +fi + # Locks CPU frequency at maximum if [ "$ENABLE_TURBO" = true ] ; then echo "force_turbo=1" >> "${BOOT_DIR}/config.txt" diff --git a/rpi23-gen-image.sh b/rpi23-gen-image.sh index 0081612..f328772 100755 --- a/rpi23-gen-image.sh +++ b/rpi23-gen-image.sh @@ -170,6 +170,9 @@ ENABLE_IPTABLES=${ENABLE_IPTABLES:=false} ENABLE_SPLITFS=${ENABLE_SPLITFS:=false} ENABLE_INITRAMFS=${ENABLE_INITRAMFS:=false} ENABLE_IFNAMES=${ENABLE_IFNAMES:=true} +ENABLE_SPLASH=${ENABLE_SPLASH:=true} +ENABLE_LOGO=${ENABLE_LOGO:=true} +ENABLE_SILENT_BOOT=${ENABLE_SILENT_BOOT=false} DISABLE_UNDERVOLT_WARNINGS=${DISABLE_UNDERVOLT_WARNINGS:=} # Kernel compilation settings