fix: boot to graphical.target when a display manager is enabled
Enabling sddm created the graphical.target.wants symlink but the system still booted to multi-user (tty), because the default boot target was never switched. configure-system.sh now sets graphical.target whenever an enabled service list includes sddm, so the workstation edition boots straight to the KDE login screen.
This commit is contained in:
@@ -73,6 +73,14 @@ while IFS= read -r svc; do
|
|||||||
[[ -n "$svc" ]] && systemctl mask "$svc" 2>/dev/null || true
|
[[ -n "$svc" ]] && systemctl mask "$svc" 2>/dev/null || true
|
||||||
done < <(yaml_list "$META" "masked" || true)
|
done < <(yaml_list "$META" "masked" || true)
|
||||||
|
|
||||||
|
# Graphical boot: when a display manager (sddm) is enabled, boot straight to
|
||||||
|
# the graphical login instead of a tty. Without this the desktop is installed
|
||||||
|
# but the system still boots to multi-user.
|
||||||
|
if yaml_list "$META" "enabled" | grep -qx "sddm"; then
|
||||||
|
systemctl set-default graphical.target
|
||||||
|
log "graphical boot: default target set to graphical.target (sddm)"
|
||||||
|
fi
|
||||||
|
|
||||||
# Zero-telemetry: apt's automatic update calls are masked in metadata; also
|
# Zero-telemetry: apt's automatic update calls are masked in metadata; also
|
||||||
# ensure no package telemetry survives.
|
# ensure no package telemetry survives.
|
||||||
rm -f /var/log/apt/*.log /var/cache/apt/archives/*.deb
|
rm -f /var/log/apt/*.log /var/cache/apt/archives/*.deb
|
||||||
|
|||||||
Reference in New Issue
Block a user