Move avahi install out of autoinstall phase
This commit is contained in:
parent
4abf26fd1e
commit
79784a6743
@ -16,6 +16,7 @@
|
|||||||
- curl
|
- curl
|
||||||
- wget
|
- wget
|
||||||
- git
|
- git
|
||||||
|
- avahi-daemon
|
||||||
- build-essential
|
- build-essential
|
||||||
- ca-certificates
|
- ca-certificates
|
||||||
- gnupg
|
- gnupg
|
||||||
|
|||||||
@ -51,7 +51,6 @@ autoinstall:
|
|||||||
- wget
|
- wget
|
||||||
- python3
|
- python3
|
||||||
- whiptail
|
- whiptail
|
||||||
- avahi-daemon
|
|
||||||
- openssh-server
|
- openssh-server
|
||||||
|
|
||||||
# ── Late commands ─────────────────────────────
|
# ── Late commands ─────────────────────────────
|
||||||
@ -96,7 +95,8 @@ autoinstall:
|
|||||||
- cp /target/opt/aipackage/autoinstall/firstboot-setup.sh /target/opt/cezen/firstboot-setup.sh
|
- cp /target/opt/aipackage/autoinstall/firstboot-setup.sh /target/opt/cezen/firstboot-setup.sh
|
||||||
- chmod +x /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
|
- echo "cezenai" > /target/etc/hostname
|
||||||
- sed -i 's/aiserver/cezenai/g' /target/etc/hosts || true
|
- sed -i 's/aiserver/cezenai/g' /target/etc/hosts || true
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ autoinstall:
|
|||||||
cat > /target/etc/systemd/system/cezen-setup.service << 'EOF'
|
cat > /target/etc/systemd/system/cezen-setup.service << 'EOF'
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Cezen AI Suite — Console Setup Wizard
|
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
|
Wants=cloud-init.target network-online.target
|
||||||
Conflicts=getty@tty1.service
|
Conflicts=getty@tty1.service
|
||||||
ConditionPathExists=!/opt/cezen/.setup-done
|
ConditionPathExists=!/opt/cezen/.setup-done
|
||||||
@ -129,7 +129,6 @@ autoinstall:
|
|||||||
|
|
||||||
- curtin in-target -- systemctl enable ssh
|
- curtin in-target -- systemctl enable ssh
|
||||||
- curtin in-target -- systemctl enable cezen-setup.service
|
- curtin in-target -- systemctl enable cezen-setup.service
|
||||||
- curtin in-target -- systemctl enable avahi-daemon.service
|
|
||||||
|
|
||||||
# ── Skip confirmations ─────────────────────────
|
# ── Skip confirmations ─────────────────────────
|
||||||
user-data:
|
user-data:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user