Move avahi install out of autoinstall phase

This commit is contained in:
Jino Jose 2026-06-25 15:29:50 +05:30
parent 4abf26fd1e
commit 79784a6743
2 changed files with 4 additions and 4 deletions

View File

@ -16,6 +16,7 @@
- curl
- wget
- git
- avahi-daemon
- build-essential
- ca-certificates
- gnupg

View File

@ -51,7 +51,6 @@ autoinstall:
- wget
- python3
- whiptail
- avahi-daemon
- openssh-server
# ── Late commands ─────────────────────────────
@ -96,7 +95,8 @@ autoinstall:
- cp /target/opt/aipackage/autoinstall/firstboot-setup.sh /target/opt/cezen/firstboot-setup.sh
- chmod +x /target/opt/cezen/firstboot-setup.sh
# Set hostname to cezenai so it's reachable as cezenai.local via mDNS
# Set hostname to cezenai. mDNS is installed later by our own stack setup
# instead of during Subiquity's package phase, which has been flaky.
- echo "cezenai" > /target/etc/hostname
- sed -i 's/aiserver/cezenai/g' /target/etc/hosts || true
@ -105,7 +105,7 @@ autoinstall:
cat > /target/etc/systemd/system/cezen-setup.service << 'EOF'
[Unit]
Description=Cezen AI Suite — Console Setup Wizard
After=cloud-final.service cloud-init.target network-online.target avahi-daemon.service
After=cloud-final.service cloud-init.target network-online.target
Wants=cloud-init.target network-online.target
Conflicts=getty@tty1.service
ConditionPathExists=!/opt/cezen/.setup-done
@ -129,7 +129,6 @@ autoinstall:
- curtin in-target -- systemctl enable ssh
- curtin in-target -- systemctl enable cezen-setup.service
- curtin in-target -- systemctl enable avahi-daemon.service
# ── Skip confirmations ─────────────────────────
user-data: