From ebf00325598730187587e36a8496753800c01eb8 Mon Sep 17 00:00:00 2001 From: veilor-org Date: Sat, 2 May 2026 03:08:08 +0100 Subject: [PATCH] v0.2.7: fix SDDM autostart + blank-pw login - display-manager.service symlink: livecd-creator skips alias creation vs Anaconda installer; without it sddm stays inactive at graphical.target - admin user: replace `passwd -d` with throwaway pw `veilor` + chage -d 0 (SDDM rejects blank pw by default, breaks first-login flow) Tested in QEMU v0.2.5: confirmed sddm enabled but inactive after boot, and blank-pw login at SDDM returns "Login Failed". --- kickstart/veilor-os.ks | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/kickstart/veilor-os.ks b/kickstart/veilor-os.ks index d97ab5c..5a88323 100644 --- a/kickstart/veilor-os.ks +++ b/kickstart/veilor-os.ks @@ -221,13 +221,21 @@ bash $REPO/scripts/kde-theme-apply.sh # Force admin password set on first boot. # livecd-creator does NOT honor `user` kickstart directive (it's a LIVE # image, no installer step). Create admin manually in chroot %post. +# Note: SDDM rejects blank passwords by default (PAM nullok off), so we +# set throwaway pw `veilor` + chage -d 0 to force reset on first login. if ! getent passwd admin >/dev/null; then useradd -m -G wheel -s /bin/bash -c "veilor admin" admin - passwd -d admin # blank password - chage -d 0 admin # expire → forced reset on first login - echo "[INFO] admin user created (blank password, expired)" + echo 'admin:veilor' | chpasswd + chage -d 0 admin + echo "[INFO] admin user created (default pw=veilor, expired)" fi +# Symlink display-manager.service → sddm.service. graphical.target Wants= +# display-manager but the alias doesn't get auto-created when sddm package +# is installed via livecd-creator (vs Anaconda installer which handles it). +# Without this, sddm stays inactive even though enabled. +ln -sf /usr/lib/systemd/system/sddm.service /etc/systemd/system/display-manager.service + # zram swap (no disk swap; keys never leak to platter) dnf install -y zram-generator || true cat > /etc/systemd/zram-generator.conf << 'EOF'