@SUSE: Improvement for /etc/init.d/autoyast
Hi, An Autoyast improvement for future SUSE releases that would make setting up a host using Autoyast with post install scripts easier. Sort the scripts in /var/adm/autoinstall/init.d alphabetically before they are executed. So the order can be defined according to the runlevel scripts in /etc/init.d/rc?.d. ==CUT== start) # Remember status and be verbose for script in `find $INITSCRIPT_DIR -type f |sort`; do echo -n "Executing AutoYaST script: $script" BASENAME=`basename $script` sh -x $script 2&> $LOG_DIR/$BASENAME.log mv $script $SCRIPT_DIR rc_status -v done chkconfig autoyast off ;; ==CUT== Currently the execution order is undefined. Regards, Bernd
On Friday 03 March 2006 17:50, Bernd Nies wrote:
An Autoyast improvement for future SUSE releases that would make setting up a host using Autoyast with post install scripts easier.
Sort the scripts in /var/adm/autoinstall/init.d alphabetically before they are executed. So the order can be defined according to the runlevel scripts in /etc/init.d/rc?.d.
==CUT== start) # Remember status and be verbose for script in `find $INITSCRIPT_DIR -type f |sort`; do echo -n "Executing AutoYaST script: $script" BASENAME=`basename $script` sh -x $script 2&> $LOG_DIR/$BASENAME.log mv $script $SCRIPT_DIR rc_status -v done chkconfig autoyast off ;; ==CUT==
Currently the execution order is undefined.
sounds reasonable. I'll take a closer look at it soon. Thanx. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany e-mail: uwe.gansert@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
On Wednesday 08 March 2006 14:29, Uwe Gansert wrote:
Sort the scripts in /var/adm/autoinstall/init.d alphabetically before they are executed. So the order can be defined according to the runlevel scripts in /etc/init.d/rc?.d.
Currently the execution order is undefined.
sounds reasonable. I'll take a closer look at it soon. Thanx.
done for SL10.1 / SLES10 -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany e-mail: uwe.gansert@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
participants (2)
-
Bernd Nies
-
Uwe Gansert