Commit c4280a50 authored by jan.koester's avatar jan.koester
Browse files

build-chroot: Live-Desktop meldet root automatisch an

Das Desktop-ISO bekommt /etc/xpara/autologin (root); xpara-greeter
wertet die Datei nur beim Start vom ISO aus, der Installer lässt sie
weg.

Co-Authored-By: default avatarClaude Opus 5.5 <noreply@anthropic.com>
parent 120fa4af
Loading
Loading
Loading
Loading
+7 −0
Changes for build-chroot.sh: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1759,6 +1759,13 @@ DHCP=yes
EOF
    mkdir -p "$root/etc/rpm"
    install -m 644 "$FENRIR_FILES/rpm/macros.fenriros" "$root/etc/rpm/"
    # the live desktop logs root in by itself (root has no password here);
    # xpara-greeter honours the file only when booted from this ISO, and the
    # installer leaves it out of the installed system
    if [[ $v = desktop ]]; then
        mkdir -p "$root/etc/xpara"
        printf 'root\n' >"$root/etc/xpara/autologin"
    fi
    [[ -x $root/usr/sbin/syslite ]] || die "no /usr/sbin/syslite in the image"
    [[ -s $root/boot/vmlinuz && -s $root/boot/initramfs.zst ]] || die "kernel RPM without /boot/vmlinuz or /boot/initramfs.zst"