Skip to content

Commit

Permalink
Enable reset on attach for Nitrokey 3 Bootloader
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed May 29, 2024
1 parent 9cfe720 commit 15fa205
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions rpm_spec/qubes-usb-proxy.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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@
3 changes: 3 additions & 0 deletions src/80-qubes-usb-reset.rules
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 15fa205

Please sign in to comment.