[Pkg-sysvinit-devel] Bug#367867: initscripts: need versioned dep on powermgmt-base for on_ac_power

Stefan Völkel stefan.voelkel at millenux.com
Mon Jul 24 08:51:03 UTC 2006


Petter Reinholdtsen wrote:
> [Stefan Völkel]
>> Not sure if I understood that correctly, but IMHO that is exaclty
>> what is not working.
> 
> I suspect you have not understood it.
> 
>> My laptop was running on battery and has only one partition,
>> notheless an fsck was performed, because on_ac_power was no longer
>> found (PATH did not include /sbin/ IIRC).
> 
> Your described behaviour is exactly how the boot is supposed to behave
> when on_ac_power is unavailable.  It is how the boot was behaving
> before support for on_ac_power was added.  The new behaviour where the
> fsck is skipped when running on battery is an optional feature only
> available when on_ac_power is present.

on_ac_power was located under /bin later it was moved to /sbin.

while located under /bin the initscripts could find on_ac_power because
$PATH contains /bin. since it does not contain /sbin on_ac_power will
never be found, even if present on the system, e.g /sbin already mountd
or just one big partition.

> So this is not a bug in the initscripts.  If you want to make this
> optional feature work on all installations, you need to convince the
> maintainer of the package with on_ac_power to move it from /usr/ to /.
> I personally believe that is a good idea, but have no strong opinion. :)

let's step back from the technical view. I'll try to explain what I'd
like to see from a laptop user point of view.

I like the fsck to be skipped when not on ac power. If the needed binary
is not available, well then it's not available, nothing we can do about
that, so perform the check. Perhaps output a nice message like,
on_ac_power not found performing fsck.

Again this is just my laptop user point of view, but right now I can not
think of a situation where /sbin would not be available when the
initscripts are running.

Right now on_ac_power resides below /sbin. Would it be possible to either:

	a) check for on_ac_power with a full path
	b) include /sbin into $PATH for the initscripts
	c) include /sbin into $PATH just for the $(which on_ac_power)
	   test?

regards
	Stefan
-- 
Stefan Völkel                              mobile: +49.170.79177.17
Millenux GmbH                               phone: +49.711.88770.300
Lilienthalstraße 2                          phone: +49.89.608665.27
70825 Stuttgart-Korntal                       fax: +49.711.88770.349
     -= linux without limits -=- http://linux.zSeries.org/ =-

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20060724/5b2a5d01/signature.pgp


More information about the Pkg-sysvinit-devel mailing list