Hi Jakub,

Le jeudi, 19 juin 2014 00.56:43, vous avez écrit :
> * Jakub Wilk <jw...@debian.org>, 2014-06-18, 10:28:
> >apparently /lib/udev/usb_modeswitch doesn't get run at all.
> 
> Renaming the rules file as 99-usb_modeswitch.rules helped a bit (don't
> know why it makes a difference): now /lib/udev/usb_modeswitch is
> executed, but the switch still doesn't happen. I managed to collect
> strace output (attached). The interesting part appears to be:
> 
> 599   open("/tmp/tcl.tmp.mDGyFD", O_RDWR|O_CREAT|O_EXCL, 0600) = -1
> EROFS (Read-only file system)

Would the following patch help you there?

--- a/lib/systemd/system/usb_modeswitch@.service
+++ b/lib/systemd/system/usb_modeswitch@.service
@@ -4,3 +4,5 @@ Description=USB_ModeSwitch
 [Service]
 Type=oneshot
 ExecStart=/usr/sbin/usb_modeswitch_dispatcher --switch-systemd %I
+RuntimeDirectory=usb-modeswitch
+Environment="TMPDIR=/run/usb-modeswitch"

OdyX


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to