Files
taninux/iso/overrides/airootfs/root/customize_airootfs.sh
T
karim a1bd74ccd2 iso: cage needs a seat -> add+enable seatd (+ qt6-wayland for calamares)
VM test showed: boot menu (TANINUX branding ✓), root autologin ✓, motd ✓,
then cage failed: libseat 'Could not connect to /run/seatd.sock'. The getty
autologin has no logind seat, so run seatd in the live (disabled on the target,
where greetd uses logind). qt6-wayland so calamares (Qt) runs under cage.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 02:30:41 +02:00

32 lines
1.3 KiB
Bash
Executable File

#!/usr/bin/env bash
# Runs once inside the airootfs chroot during mkarchiso.
set -e -u
# --- locale ---
sed -i 's/#\(en_US\.UTF-8 UTF-8\)/\1/' /etc/locale.gen
locale-gen
# --- trust the [tanin] DB-signing key (so Optional TrustAll verifies) ---
pacman-key --init
pacman-key --populate archlinux
pacman-key --add /etc/pacman.d/tanin-repo.gpg
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
# --- plymouth: add the hook so the target initramfs shows the splash ---
# (Calamares regenerates the initramfs on the target; this drop-in is carried
# over by unpackfs. 'quiet splash' goes on the kernel cmdline at install time.)
if ! grep -q plymouth /etc/mkinitcpio.conf 2>/dev/null; then
sed -i 's/^\(HOOKS=.*\)\(udev\)/\1\2 plymouth/' /etc/mkinitcpio.conf 2>/dev/null || true
fi