changing init script launch sequence & getting location data

hi. is it possible to easily change init script ('autoyast') launch sequence/requirements so that it is launched after sshd has started ? currently, it runs together with sshd, which is generating keys for some time, and that is inconvenient for some actions script has to perform. additionally, is it possible to get init script location data (defined in <location>) in the script itself some way (a variable ?) ? as in "use here the same host/directory you came from". (oh yes, using sles10) thanks -- Rich

On Wednesday 18 October 2006 13:11, Rich wrote:
is it possible to easily change init script ('autoyast') launch sequence/requirements so that it is launched after sshd has started ? currently, it runs together with sshd, which is generating keys for some time, and that is inconvenient for some actions script has to perform.
hm. Have you tried to turn off the RUN_PARALLEL in /etc/sysconfig/boot? Maybe you have to do that in a chroot script, because the sysconfig section in the profile might be evaluated too late.
additionally, is it possible to get init script location data (defined in <location>) in the script itself some way (a variable ?) ? as in "use here the same host/directory you came from".
maybe you can try to put the location in the <filename> too. Then you can access it via $0 Or you can use a chroot-script that evaluates the /tmp/profile/autoinst.xml and stores the location information in /mnt/tmp for the init-script later. Those are the only ideas I have at the moment. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany Business: http://www.suse.de/~ug now playing Agonoize - Sacrifice

Uwe Gansert wrote:
On Wednesday 18 October 2006 13:11, Rich wrote:
is it possible to easily change init script ('autoyast') launch sequence/requirements so that it is launched after sshd has started ? currently, it runs together with sshd, which is generating keys for some time, and that is inconvenient for some actions script has to perform.
hm. Have you tried to turn off the RUN_PARALLEL in /etc/sysconfig/boot? Maybe you have to do that in a chroot script, because the sysconfig section in the profile might be evaluated too late.
i'll try this. will probably have to enable it later, and this probably would slightly increase time needed for the initial boot. at which point does /etc/init.d/autoyast appear ? maybe it is possible to simply add sshd to Required-Start ? or even better - add autoyast to sshd required services... yes, this would be even better. i'll try doing this in chroot script, then :)
additionally, is it possible to get init script location data (defined in <location>) in the script itself some way (a variable ?) ? as in "use here the same host/directory you came from".
maybe you can try to put the location in the <filename> too. Then you can access it via $0
this would remove the benefit, as i would like to access initial script from a remote http server. putting address in location would require remastering the boot cd every time location changes. that is unless, i misunderstood something :)
Or you can use a chroot-script that evaluates the /tmp/profile/autoinst.xml and stores the location information in /mnt/tmp for the init-script later. Those are the only ideas I have at the moment.
this would probably work, although making the setup slightly more complex. would it make sense to export data like this to scripts with some environment variables ? if so, i could report a wish. -- Rich

Uwe Gansert wrote:
On Wednesday 18 October 2006 13:11, Rich wrote: ... Or you can use a chroot-script that evaluates the /tmp/profile/autoinst.xml and stores the location information in /mnt/tmp for the init-script later.
just in case somebody else misses the obvious as i did - make sure 'chrooted' is set to false, as /tmp/profile exists only in the installation environment. ... -- Rich
participants (2)
-
Rich
-
Uwe Gansert