login: HyperV requires master-of-seat to be set
authorMike Lothian <mike@fireburn.co.uk>
Tue, 26 Feb 2019 21:24:43 +0000 (21:24 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 4 Mar 2019 11:04:53 +0000 (12:04 +0100)
v2: Update comment provided by Lennart

Fixes: https://github.com/systemd/systemd/issues/11299

src/login/71-seat.rules.in

index 8049be4..a5928b0 100644 (file)
@@ -13,6 +13,10 @@ TAG=="uaccess", SUBSYSTEM!="sound", TAG+="seat"
 SUBSYSTEM=="sound", KERNEL=="card*", TAG+="seat"
 SUBSYSTEM=="input", KERNEL=="input*", TAG+="seat"
 SUBSYSTEM=="graphics", KERNEL=="fb[0-9]*", TAG+="seat"
+
+# HyperV currently doesn't do DRM, hence we need to synthesize for HyperV's fb device instead
+SUBSYSTEM=="graphics", KERNEL=="fb[0-9]", DRIVERS=="hyperv_fb", TAG+="master-of-seat"
+
 SUBSYSTEM=="drm", KERNEL=="card[0-9]*", TAG+="seat", TAG+="master-of-seat"
 SUBSYSTEM=="usb", ATTR{bDeviceClass}=="09", TAG+="seat"