From 6ef7a68a1dcca6d62f55c7ba589880861960191f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cerm=C3=A1k?= Date: Thu, 16 Jan 2025 18:11:35 +0100 Subject: [PATCH] Make usb_modeswitch include directory writable (#3800) 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 --- .../lib/systemd/system/etc-usb_modeswitch.d.mount | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 buildroot-external/rootfs-overlay/usr/lib/systemd/system/etc-usb_modeswitch.d.mount diff --git a/buildroot-external/rootfs-overlay/usr/lib/systemd/system/etc-usb_modeswitch.d.mount b/buildroot-external/rootfs-overlay/usr/lib/systemd/system/etc-usb_modeswitch.d.mount new file mode 100644 index 00000000000..0f1f45b4b68 --- /dev/null +++ b/buildroot-external/rootfs-overlay/usr/lib/systemd/system/etc-usb_modeswitch.d.mount @@ -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