From e398d7edca1ead6d74b86d9b8603c00839be08c8 2020-04-09 15:08:17 From: Vincent KULAK Date: 2020-04-09 15:08:17 Subject: [PATCH] Update 50-firstboot.sh --- diff --git a/bootstrap.d/50-firstboot.sh b/bootstrap.d/50-firstboot.sh index 1b17876..87e3998 100644 --- a/bootstrap.d/50-firstboot.sh +++ b/bootstrap.d/50-firstboot.sh @@ -39,6 +39,13 @@ if [ "$ENABLE_IFNAMES" = true ] ; then cat files/firstboot/42-config-ifnames.sh >> "${ETC_DIR}/rc.firstboot" fi +# Execute custom firstboot scripts +if [ -d "custom.d/firstboot" ] ; then + for SCRIPT in custom.d/firstboot/*.sh; do + . "$SCRIPT" + done +fi + # Finalize rc.firstboot script cat files/firstboot/99-finish.sh >> "${ETC_DIR}/rc.firstboot" chmod +x "${ETC_DIR}/rc.firstboot"