Skip to content

Commit 5a8c30d

Browse files
committed
Framework: copy user provided first boot config at build time
1 parent badbc99 commit 5a8c30d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/functions/rootfs/distro-agnostic.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ function install_distribution_agnostic() {
109109
# display welcome message at first root login which is ready by /usr/sbin/armbian/armbian-firstlogin
110110
touch "${SDCARD}"/root/.not_logged_in_yet
111111

112+
# use user provided firstboot config
113+
if [[ -f "${USERPATCHES_PATH}/firstboot.conf" ]]; then
114+
display_alert "Use user provided firstboot config" "" "info"
115+
cp "${USERPATCHES_PATH}/firstboot.conf" "${SDCARD}"/root/.not_logged_in_yet
116+
fi
117+
112118
if [[ ${DESKTOP_AUTOLOGIN} == yes ]]; then
113119
# set desktop autologin
114120
touch "${SDCARD}"/root/.desktop_autologin

0 commit comments

Comments
 (0)