iso: launch installer via greetd initial_session (proper seat for cage)
seatd alone didn't fix it (getty-autologin gives cage no logind seat; 5x respawn then systemd start-limit -> black). Switch to greetd's initial_session, which creates a real logind session WITH A SEAT and auto-runs cage+calamares (no login prompt). Calamares' striplive restores the tanin-greet greetd config on the target. Drop the getty-autologin + /root/.zprofile hack. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
# Live ISO: auto-launch the TANINUX installer on the first console.
|
||||
# (Removed from the installed target by Calamares' shellprocess-striplive.)
|
||||
if [[ "$(tty)" == /dev/tty1 ]] && [[ -z "$WAYLAND_DISPLAY" ]] && ! pgrep -x cage >/dev/null 2>&1; then
|
||||
exec tanin-installer
|
||||
fi
|
||||
@@ -14,14 +14,27 @@ pacman-key --lsign-key 63F0415879323F6BFE0FBFB2B6FDF356206AF4F6
|
||||
|
||||
# --- services in the LIVE image ---
|
||||
systemctl enable NetworkManager.service
|
||||
# seat manager for cage (the getty-autologin root session has no logind seat).
|
||||
systemctl enable seatd.service
|
||||
gpasswd -a root seat 2>/dev/null || true
|
||||
# Live boots to a console on tty1 that auto-launches the installer (cage +
|
||||
# calamares) via getty autologin + /root/.bash_profile. No display-manager.
|
||||
systemctl set-default multi-user.target
|
||||
# greetd is for the TARGET only (Calamares enables it post-install).
|
||||
systemctl disable greetd.service 2>/dev/null || true
|
||||
|
||||
# Live: greetd auto-launches the installer (cage + calamares) via initial_session.
|
||||
# greetd creates a real logind session WITH A SEAT (the getty-autologin couldn't),
|
||||
# so cage/wlroots starts. No login prompt — the installer comes up directly.
|
||||
# (The tanin-greet package set config.toml to its greeter; we override it here for
|
||||
# the live, and Calamares restores the tanin-greet config on the target.)
|
||||
cat > /etc/greetd/config.toml <<'GEOF'
|
||||
[terminal]
|
||||
vt = 1
|
||||
|
||||
[initial_session]
|
||||
command = "cage -s -- calamares"
|
||||
user = "root"
|
||||
|
||||
[default_session]
|
||||
command = "agreety --cmd /bin/zsh"
|
||||
user = "greeter"
|
||||
GEOF
|
||||
systemctl enable greetd.service
|
||||
systemctl set-default graphical.target
|
||||
|
||||
# --- plymouth: add the hook so the target initramfs shows the splash ---
|
||||
# (Calamares regenerates the initramfs on the target; this drop-in is carried
|
||||
|
||||
Reference in New Issue
Block a user