fsck only checks battery when requested, which is not by default.

This fixes having JFS as the root partition on battery power.
For most modern FS's this is a non op, or a very small op by default
so it should be fine.
Fixes Gentoo #291654.
This commit is contained in:
Roy Marples
2009-11-10 22:50:48 +00:00
parent 1d9ce8e9a1
commit d29daf3952
2 changed files with 6 additions and 1 deletions

View File

@@ -73,7 +73,7 @@ start()
if _forcefsck; then
fsck_opts="$fsck_opts -f"
check_extra="(check forced)"
elif ! _on_ac_power; then
elif ! yesno ${fsck_on_battery:-YES} && ! _on_ac_power; then
ewarn "Skipping fsck due to not being on AC power"
return 0
fi