fix: stop ly and other tui display managers for single-gpu passthrough

This commit is contained in:
2026-09-06 08:56:27 +02:00
parent 1e1078e16a
commit d3062f5e24

View File

@@ -237,7 +237,7 @@ prepare)
# 1. stop whatever is holding the DRM device
dm=$(systemctl list-units --type=service --state=running --no-legend 2>/dev/null |
awk '{print $1}' | grep -xE '(gdm|sddm|lightdm|lxdm|greetd|display-manager)\.service' | head -1)
awk '{print $1}' | grep -xE '((gdm|sddm|lightdm|lxdm|greetd|ly|emptty|lemurs)(@[a-z0-9-]+)?|display-manager)\.service' | head -1)
if [ -n "$dm" ]; then
echo "$dm" > "$STATE/dm"
log "stopping $dm"