diff --git a/Makefile b/Makefile index 332750d..9065f75 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,8 @@ install-vm: install qubes-rpc/qubes.USB $(DESTDIR)/etc/qubes-rpc install -d $(DESTDIR)/usr/lib/qubes install src/usb-* $(DESTDIR)/usr/lib/qubes + install -d $(DESTDIR)/usr/lib/udev/rules.d + install src/*.rules $(DESTDIR)/usr/lib/udev/rules.d install -d $(DESTDIR)/etc/qubes/suspend-pre.d ln -s ../../../usr/lib/qubes/usb-detach-all \ $(DESTDIR)/etc/qubes/suspend-pre.d/usb-detach-all.sh diff --git a/rpm_spec/qubes-usb-proxy.spec.in b/rpm_spec/qubes-usb-proxy.spec.in index 2dddaf1..e69600b 100644 --- a/rpm_spec/qubes-usb-proxy.spec.in +++ b/rpm_spec/qubes-usb-proxy.spec.in @@ -32,6 +32,7 @@ make install-vm DESTDIR=${RPM_BUILD_ROOT} /usr/lib/qubes/usb-export /usr/lib/qubes/usb-detach-all /usr/lib/qubes/usb-reset +/usr/lib/udev/rules.d/80-qubes-usb-reset.rules %changelog @CHANGELOG@ diff --git a/src/80-qubes-usb-reset.rules b/src/80-qubes-usb-reset.rules new file mode 100644 index 0000000..697b9b8 --- /dev/null +++ b/src/80-qubes-usb-reset.rules @@ -0,0 +1,3 @@ +# Nitrokey 3 Bootloader, requires reset on attach +# See https://github.com/QubesOS/qubes-issues/issues/8953 +SUBSYSTEM=="usb", ENV{ID_VENDOR_ID}=="20a0", ENV{ID_MODEL_ID}=="42dd", ENV{QUBES_USB_RESET}="1"