Incorrect battery handling in checkfs.sh
Bug #59080 reported by
none
This bug report is a duplicate of:
Bug #89752: ACPI ac module not getting loaded before e2fsck runs.
Edit
Remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sysvinit (Ubuntu) |
Confirmed
|
Low
|
Daniel Hahler |
Bug Description
checkfs.sh sets PATH to be /sbin:/bin . When it attempts to check if we're on battery, it does "if which on_ac_power >/dev/null 2>&1".
On a standard Edgy system, on_ac_power is located in /usr/bin. Because of the PATH setting, the "which on_ac_power" will never find that command and the net effect is that checkfs.sh always acts as if we're running on AC.
One fix would be to also put /usr/bin in the path, but I'm not sure if that's the correct one.
This is with up-to-date Edgy, initscripts version 2.86.ds1-
To post a comment you must log in.
Of course, if you have no /usr, this wouldn't work then either