The problem is that, like on_ac_power, e2fsck checks for
/proc/acpi/ac_adapter/*/state in unix.c:is_on_batt().

This directory will not exist until the ac module is loaded.

The ac module is loaded by /etc/rc2.d/S10acpid, which runs after
/etc/rcS.d/S20checkroot.sh and /etc/rcS.d/S30checkfs.sh, so e2fsck can't
know that it's running on battery.

I suggest modifying /sbin/on_ac_power (which is run by checkroot.sh) to
do a modprobe ac, in which case, this should be reassigned to powermgmt-
base.

-- 
skipping fsck while booting on battery
https://bugs.launchpad.net/bugs/89752
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to