From 32844eb636a7b7a62a931d89b1cfce53d0f178d7 Mon Sep 17 00:00:00 2001 From: Guy Sheffer Date: Thu, 3 Sep 2026 10:02:16 +0300 Subject: [PATCH] fix: mask firstboot wizard without skipping firstboot services --- src/modules/base/end_chroot_script | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/base/end_chroot_script b/src/modules/base/end_chroot_script index 0a7a9e82..b2cbebbc 100755 --- a/src/modules/base/end_chroot_script +++ b/src/modules/base/end_chroot_script @@ -34,6 +34,12 @@ fi echo "$BASE_OVERRIDE_HOSTNAME" > /etc/hostname sed -i -e "s@${FILE_HOST_NAME}@$BASE_OVERRIDE_HOSTNAME@g" /etc/hosts +# Raspberry Pi OS's systemd-firstboot wizard blocks headless GUI images on +# tty1. Mask only that wizard; keep the image in first-boot state so +# ConditionFirstBoot services (notably SSH host-key generation) still run. +mkdir -p /etc/systemd/system +ln -sf /dev/null /etc/systemd/system/systemd-firstboot.service + if [ "${BASE_DISTRO}" == "ubuntu" ];then echo "127.0.0.1 ${BASE_OVERRIDE_HOSTNAME}" > /etc/hosts fi