Package: initscripts Version: 2.86.ds1-56 Severity: normal Tags: patch User: [EMAIL PROTECTED] Usertags: origin-ubuntu intrepid ubuntu-patch
Hi! Attached patch ensures that on_ac_power actually works, by making sure that the "ac" module is loaded. Without it, the function will always fail, and fsck will grind away even when running on battery. See https://launchpad.net/bugs/89752 for the original bug and some details. Thanks for considering, Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
* debian/initscripts/etc/init.d/checkroot.sh: If ACPI is available, load the ac module before checking the root filesystem, so that fsck can skip the check when running on battery. (LP #89752) --- sysvinit-2.86.ds1/debian/initscripts/etc/init.d/checkroot.sh +++ sysvinit-2.86.ds1/debian/initscripts/etc/init.d/checkroot.sh @@ -194,6 +195,9 @@ # before and check all file systems needing it. if which on_ac_power >/dev/null 2>&1 && [ "$rootcheck" = yes ] then + if [ -d /proc/acpi ]; then + modprobe ac >/dev/null 2>&1 + fi on_ac_power >/dev/null 2>&1 if [ "$?" -eq 1 ] then
signature.asc
Description: Digital signature

