diff options
author | Roy Marples <roy@marples.name> | 2009-11-10 22:50:48 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-11-10 22:50:48 +0000 |
commit | d29daf395299fc97b8e13676bc282800a8bddae8 (patch) | |
tree | e28730c6d4189ffcb144fb69b789fa4328e75b3a /init.d | |
parent | 1d9ce8e9a1ece0fd108b2b50b45bc4a0da0cf3fc (diff) |
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.
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/fsck.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init.d/fsck.in b/init.d/fsck.in index 279e25cb..220b6492 100644 --- a/init.d/fsck.in +++ b/init.d/fsck.in @@ -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 |