[Mageia-dev] How should an init script determine if it is being run during install or regular boot?

David W. Hodgins davidwhodgins at gmail.com
Sun Apr 24 19:38:46 CEST 2011


The patch submitted for the named init script in
https://bugs.mageia.org/show_bug.cgi?id=871
fixes the problem of the openssl engines not being
available in the chroot environment, during a normal
bootup, however during an upgrade using the beta 2
pre-release iso's, it fails as the init script is
using absolute path names.

While I can submit a new patch that checks to see
if /var/lib/named or /mnt/var/lib/named exists, to
determine if the script is running in an install or
a normal bootup, I'm wondering if there is a "standard"
way for an init script to determine which environment
it's being run in.

Regards, Dave Hodgins


More information about the Mageia-dev mailing list