Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/modules/base/end_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading