Le mardi, 11 octobre 2011 19.07:27, [email protected] a écrit : > I recently ran across the same issue (though be it with a different > version of usb-modeswitch) and since this one wasn't closed I thought I'd > report my findings. > > Versions (debian squeeze, using backports) > usb-modeswitch (1.1.9-2~bpo60+1) > usb-modeswitch-data (20110805-1~bpo60+1) > > Summary: > the filesystem that the temporary config was being extracted to was > read-only and the usb_modeswitch_dispatcher terminates with an error.
Hi Sander, and thank you very much for the hint!
If this is really the core issue, then fixing this is easy:
usb_modeswitch_tcl currently unpacks to /var/lib/usb_modeswitch/current_cfg,
so it's a one-line patch to make it unpack to /run/usb_modeswitch_current_cfg
instead (see attached patch); this should be good for Sid, but would need more
thoughts for Squeeze as it doesn't have /run.
I compiled usb-modeswitch (for sid) with the attached patch:
http://alioth.debian.org/~odyx-guest/debian/unstable/usb-modeswitch_1.1.9-2+fix629371~attempt0_i386.deb
http://alioth.debian.org/~odyx-guest/debian/unstable/usb-modeswitch_1.1.9-2+fix629371~attempt0_amd64.deb
Christian or Sander, can you try this on a Wheezy/Sid system?
TIA, cheers,
--
OdyX
Description: Untar configuration files to /run instead of /var/lib that 'might' be unavailable at unpack time. Author: Didier Raboud <[email protected]> Last-Update: 2011-10-13 Bug-Debian: 629371 --- a/usb_modeswitch.tcl +++ b/usb_modeswitch.tcl @@ -601,7 +601,7 @@ conffile { if [regexp {^pack/} $config] { set config [regsub {pack/} $config {}] - set settings(tmpConfig) /var/lib/usb_modeswitch/current_cfg + set settings(tmpConfig) /run/usb_modeswitch_current_cfg Log "Extracting config $config from collection $settings(dbdir)/configPack.tar.gz" set wc [open $settings(tmpConfig) w] puts -nonewline $wc [exec tar -xzOf $settings(dbdir)/configPack.tar.gz $config 2>/dev/null]
signature.asc
Description: This is a digitally signed message part.

