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"