Bug#460404: [Pkg-sysvinit-devel] Bug#460404: running fsck on battery should be configurable

2008-01-12 Thread Petter Reinholdtsen
[Harald Dunkel] Running fsck on battery should be configurable, e.g. by some option in /lib/init/vars.sh. For an ext2 filesystem it is fatal to ignore a fsck, esp. since there is a higher risk for laptops. They either run out of power, or they are just shut off. I'll see what we can do. But

Bug#460404: [Pkg-sysvinit-devel] Bug#460404: running fsck on battery should be configurable

2008-01-12 Thread Petter Reinholdtsen
[Harald Dunkel] Running fsck on battery should be configurable, e.g. by some option in /lib/init/vars.sh. For an ext2 filesystem it is fatal to ignore a fsck, esp. since there is a higher risk for laptops. They either run out of power, or they are just shut off. One way to do this is by

Bug#460404: [Pkg-sysvinit-devel] Bug#460404: running fsck on battery should be configurable

2008-01-12 Thread Harald Dunkel
Petter Reinholdtsen wrote: I'll see what we can do. But already today, there is a configuration switch to flip to enable fsck. Just insert the power when booting. :) Even if you never used a laptop, I think its easy to imagine that there is not always a power supply available. Regards

Bug#460404: [Pkg-sysvinit-devel] Bug#460404: running fsck on battery should be configurable

2008-01-12 Thread Harald Dunkel
Petter Reinholdtsen wrote: One way to do this is by adding this function to /etc/default/rcS: on_ac_power() { true; } It should make sure the function is used instead of the binary. But it would affect other startup scripts as well, e.g. anacron. Below you can find a patch. Harri