Make installer bring up SSH and disable cdrom apt source
This commit is contained in:
parent
9c4ad34102
commit
e7849c57d3
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user