[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Moving libusb to /lib (was: [Re: nut: final stage of shutdown doesn't work if /usr is a in separate filesystem])

I have a bug on the nut-usb package [1]
on a USB UPS driver (called newhidups, of
which I'm also upstream), which made me

Currently, in case of a power failure shutdown,
halt script calls the UPS driver to send a delayed
poweroff order to the UPS. This allows to save
battery charge.

But this might not work for an USB UPS, if
/usr has been unmounted, as libusb won't be

So newhidups is really a system program,
installed on the root fs (/lib/nut), and
needs to be functional upon shutdown.

According to the FHS [2], libusb should so be
installed in /lib. The other option is to compile
newhidups statically with libusb.

There are pros and cons for both solution, but
I (as upstream and DD) am more for the first.

Note that I've previously contacted libusb maintainer
(salut Aurelien) to talk with him about that.

Feedback and comments are welcomed...

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=268723
[2] http://www.pathname.com/fhs/pub/fhs-2.3.html#LIBESSENTIALSHAREDLIBRARIESANDKERN
OpenSource Developer (NUT, ...)
Debian Developer

Reply to: