Summary: | www-apps/nut 2.0.0-r1 creates link to upsdrvctl in /usr/sbin, should be in /sbin | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dafo <dafo-linux> |
Component: | New packages | Assignee: | Robin Johnson <robbat2> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | max, prez |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 103132 | ||
Bug Blocks: | |||
Attachments: | Diff to fix this bug |
Description
Dafo
2005-04-12 04:33:23 UTC
I confirm that bug, and it's not alone. Symlink won't work on a separate file system. Also, all drivers are in /usr/lib/nut/* And, if /usr is umounted, even if I copied upsdrvctl to /sbin, it can't powerdown UPS because it can't find my driver (powercom). The only solution I found is : cp /usr/sbin/upsdrvctl /sbin cp -a /usr/lib/nut/ /lib/ and add this option in my /etc/nut/ups.conf : driverpath = /lib/nut Ebuild could use that path, or another, but not a path in /usr that is often on a separate file system from root. I spent a lot of time to find the real problem. Other thing, I had to put that in my /etc/conf.d/local.start : chown nut\:nut /dev/tts/0 chmod 0600 /dev/tts/0 because I couldn't make udev to do it... May be I didn't need it, but I was looking for a solution to my PC powerdown UPS... Sorry for my bad english. This ain't webapps. Reassigning. the problem is worse: I use newhidups and it needs libusb, so that file must also exist on non-/usr. and another problem is that /proc/bus/usb has to remain mounted..... I'll try to fit it all in an ebuild, but it'll be difficult to do this "clean" I submitted the patch in bug #85296 Created attachment 82100 [details, diff]
Diff to fix this bug
This problem is still present in the 2.0.1_pre4 release. This patch solves it (probabely not in a very clean way)
For the lib move, there is bug #103132. For everything else, I'm commiting the change in a moment. Fixed in CVS for 2.0.3. I do have one question for shutdowns however. upsdrvctl invokves /lib/nut/$driver -a $UPSNAME -k Does this shut down with shutdown.return or load.off? |