Make installer bring up SSH and disable cdrom apt source

This commit is contained in:
Jino Jose 2026-06-24 21:38:49 +05:30
parent 9c4ad34102
commit e7849c57d3

View File

@ -35,7 +35,7 @@ autoinstall:
# ── Identity ────────────────────────────────── # ── Identity ──────────────────────────────────
identity: identity:
hostname: aiserver hostname: cezenai
username: cezen username: cezen
# Password: cezen@123 # Password: cezen@123
password: "$6$I5VA.42G1xTeVhCv$KCLzqIKg/kbNHZyiTEMAY4FZsJMDDwoS90k6Ffb9VEwmcK.wuzlJNe3ceiEfLrzYzXEvqjYsLc7klAbeGPGab." password: "$6$I5VA.42G1xTeVhCv$KCLzqIKg/kbNHZyiTEMAY4FZsJMDDwoS90k6Ffb9VEwmcK.wuzlJNe3ceiEfLrzYzXEvqjYsLc7klAbeGPGab."
@ -52,6 +52,7 @@ autoinstall:
- wget - wget
- python3 - python3
- avahi-daemon - avahi-daemon
- openssh-server
# ── Late commands ───────────────────────────── # ── Late commands ─────────────────────────────
late-commands: late-commands:
@ -63,6 +64,10 @@ autoinstall:
- echo "cezen ALL=(ALL) NOPASSWD:ALL" > /target/etc/sudoers.d/cezen - echo "cezen ALL=(ALL) NOPASSWD:ALL" > /target/etc/sudoers.d/cezen
- chmod 440 /target/etc/sudoers.d/cezen - chmod 440 /target/etc/sudoers.d/cezen
# Disable the installer media APT source so post-install apt uses network
# mirrors instead of the custom ISO content.
- sed -i 's/^deb cdrom:/# deb cdrom:/' /target/etc/apt/sources.list || true
# Install the Cezen AI payload from the ISO first. Fall back to Git only # Install the Cezen AI payload from the ISO first. Fall back to Git only
# when building from older media that does not contain /cdrom/cezen-aipackage. # when building from older media that does not contain /cdrom/cezen-aipackage.
- mkdir -p /target/opt/aipackage - mkdir -p /target/opt/aipackage
@ -96,6 +101,7 @@ autoinstall:
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
- 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 - curtin in-target -- systemctl enable avahi-daemon.service