Skip to content

Commit

Permalink
Make usb_modeswitch include directory writable (#3800)
Browse files Browse the repository at this point in the history
The /etc/usb_modeswitch.d is present and empty but it can't be written to allow
user modification. Bind-mount it like other /etc folders to make it possible to
adjust usb_modeswitch config.

Fixes #3785
  • Loading branch information
sairon authored Jan 16, 2025
1 parent d9fb660 commit 6ef7a68
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
Description=USB modeswitch persistent directory
Requires=mnt-overlay.mount
After=mnt-overlay.mount
Before=hassos-config.service

[Mount]
What=/mnt/overlay/etc/usb_modeswitch.d
Where=/etc/usb_modeswitch.d
Type=None
Options=bind

[Install]
WantedBy=hassos-bind.target

0 comments on commit 6ef7a68

Please sign in to comment.