fix: stop ly and other tui display managers for single-gpu passthrough
This commit is contained in:
@@ -237,7 +237,7 @@ prepare)
|
|||||||
|
|
||||||
# 1. stop whatever is holding the DRM device
|
# 1. stop whatever is holding the DRM device
|
||||||
dm=$(systemctl list-units --type=service --state=running --no-legend 2>/dev/null |
|
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
|
if [ -n "$dm" ]; then
|
||||||
echo "$dm" > "$STATE/dm"
|
echo "$dm" > "$STATE/dm"
|
||||||
log "stopping $dm"
|
log "stopping $dm"
|
||||||
|
|||||||
Reference in New Issue
Block a user