Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103133 - UPS-shutdown requires /proc/bus/usb to be mounted rw
Summary: UPS-shutdown requires /proc/bus/usb to be mounted rw
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-20 05:03 UTC by Niels Laukens
Modified: 2006-12-08 15:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niels Laukens 2005-08-20 05:03:27 UTC
When using the newhidups driver from Network UPS Tools, the shutdown command
requires /proc/bus/usb to be mounted rw.

However, when doing an automatic shutdown, the ups-command is called last, after
all filesystems are unmounted/remounted-ro.

An ugly fix is to add
mount -n -o remount,rw /proc/bus/usb
in the ups_kill_power() function.

A more elegant solution (which might be flawed, since I'm no expert at this) is
to exclude /proc, /proc/bus/usb, /sys and other virtual filesystems from the
ro-remount. I don't think there is any disadvantage in having these mounted RW
at shutdown, since they can't get corrupted...

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2005-08-20 19:30:18 UTC
i think it's time we split the ups cruft out of baselayout and into an addon
Comment 2 Roy Marples (RETIRED) gentoo-dev 2006-11-14 01:52:20 UTC
(In reply to comment #1)
> i think it's time we split the ups cruft out of baselayout and into an addon

Would be nice

In the meantime, baselayout-1.13.0_alpha8 won't remount /proc/bus/usb read-only.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2006-12-08 15:04:12 UTC
Fixed in baselayout-1.13.0_alpha8

However, I can't test it, so any feedback is welcome :)