From e7849c57d3f8ddbab0ab0cdf9aa22159cc94979d Mon Sep 17 00:00:00 2001 From: Jino Jose Date: Wed, 24 Jun 2026 21:38:49 +0530 Subject: [PATCH] Make installer bring up SSH and disable cdrom apt source --- autoinstall/user-data | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/autoinstall/user-data b/autoinstall/user-data index ffba6b8..003effb 100644 --- a/autoinstall/user-data +++ b/autoinstall/user-data @@ -35,7 +35,7 @@ autoinstall: # ── Identity ────────────────────────────────── identity: - hostname: aiserver + hostname: cezenai username: cezen # Password: cezen@123 password: "$6$I5VA.42G1xTeVhCv$KCLzqIKg/kbNHZyiTEMAY4FZsJMDDwoS90k6Ffb9VEwmcK.wuzlJNe3ceiEfLrzYzXEvqjYsLc7klAbeGPGab." @@ -52,6 +52,7 @@ autoinstall: - wget - python3 - avahi-daemon + - openssh-server # ── Late commands ───────────────────────────── late-commands: @@ -63,6 +64,10 @@ autoinstall: - echo "cezen ALL=(ALL) NOPASSWD:ALL" > /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 # when building from older media that does not contain /cdrom/cezen-aipackage. - mkdir -p /target/opt/aipackage @@ -96,6 +101,7 @@ autoinstall: WantedBy=multi-user.target EOF + - curtin in-target -- systemctl enable ssh - curtin in-target -- systemctl enable cezen-setup.service - curtin in-target -- systemctl enable avahi-daemon.service