Re: Fw: [suse-autoinstall] Re: firstboot scripts
Anthony, Are your scripts executable? Maybe you need to chmod +x them. I have tested again, and it works for me. Anas Anthony Staples wrote:
Anas,
I uninstalled the current version of yast-firstboot (2.9.3-0.2) and updated the install to 2.9.4-0.1 as you requested. The results were the same. I created a small, simple script in /usr/share/firstboot/scripts, touched /etc/reconfig_system, then rebooted. Firstboot service did run, but the script did not run. /var/log/Yast2/firstboot.log file was created, however it was empty.
I also tested with a stock control.xml file with the same results.
Cheers, T
----- Forwarded by Anthony Staples/Louisville/Humana on 02/08/2005 03:26 PM -----
"Anthony Staples" <awstaples@hotmail.com> 02/07/2005 05:47 PM
To <astaples@humana.com> cc
Subject Fw: [suse-autoinstall] Re: firstboot scripts
----- Original Message ----- From: "Anas Nashif" <nashif@suse.de> To: "Anthony Staples" <astaples@humana.com> Cc: <awstaples@hotmail.com> Sent: Monday, February 07, 2005 3:57 PM Subject: Re: [suse-autoinstall] Re: firstboot scripts
Anthony, Could you please try the attached RPM.
Anas
Anthony Staples wrote:
Anas,
I sometimes have trouble recieving email from you, so please respond to awstaples@hotmail.com, That is if you don't post to the mailing list.
Regards,
Anthony Staples Technical Analyst Humana Inc. 502.580.2870
The information transmitted is intended only for the person or entity to which it is addressed and may contain CONFIDENTIAL material. If you receive this material/information in error, please contact the sender and delete or destroy the material/information.
The information transmitted is intended only for the person or entity to which it is addressed and may contain CONFIDENTIAL material. If you receive this material/information in error, please contact the sender and delete or destroy the material/information.
Anas, Yes, the test script is executable. I ran the script a few times manually just to make sure it _was_ executable and behaved predictably. here it is: #!/bin/sh echo Hello World >> test.txt echo `date` >> test.txt exit 0 Here are the steps I have followed to try this feature of the firstboot service. - Used yast to uninstall old version of yast-firstboot rpm - Used yast to install new version you sent. - created the test script, named test.sh - exec'd chmod +x test.sh - exec'd test.sh a few times manually. It successfully created the test.txt file with the expected contents - exec'd touch /etc/reconfig_system - exec'd chkconfig firstboot off, chkconfig firstboot on - rebooted system Firstboot runs as expected and I click thru the screens I have setup in the control.xml. Logon screen is presented. After logging on and checking the /usr/share/firstboot/scripts directory, the file test.txt doesn't exist, as it should if test.sh was exec'd by firstboot. Does firstboot redirect the output of the test.sh script somewhere else? What am I doing wrong? The Novell Linux Desktop install is going great... just this one detail to work out... Cheers, T Anas Nashif <nashif@suse.de> 02/09/2005 01:51 AM To Anthony Staples <astaples@humana.com> cc suse-autoinstall@suse.com Subject Re: Fw: [suse-autoinstall] Re: firstboot scripts Anthony, Are your scripts executable? Maybe you need to chmod +x them. I have tested again, and it works for me. Anas Anthony Staples wrote:
Anas,
I uninstalled the current version of yast-firstboot (2.9.3-0.2) and updated the install to 2.9.4-0.1 as you requested. The results were the same. I created a small, simple script in /usr/share/firstboot/scripts, touched /etc/reconfig_system, then rebooted. Firstboot service did run, but the script did not run. /var/log/Yast2/firstboot.log file was created, however it was empty.
I also tested with a stock control.xml file with the same results.
Cheers, T
----- Forwarded by Anthony Staples/Louisville/Humana on 02/08/2005 03:26
PM -----
"Anthony Staples" <awstaples@hotmail.com> 02/07/2005 05:47 PM
To <astaples@humana.com> cc
Subject Fw: [suse-autoinstall] Re: firstboot scripts
----- Original Message ----- From: "Anas Nashif" <nashif@suse.de> To: "Anthony Staples" <astaples@humana.com> Cc: <awstaples@hotmail.com> Sent: Monday, February 07, 2005 3:57 PM Subject: Re: [suse-autoinstall] Re: firstboot scripts
Anthony, Could you please try the attached RPM.
Anas
Anthony Staples wrote:
Anas,
I sometimes have trouble recieving email from you, so please respond to awstaples@hotmail.com, That is if you don't post to the mailing list.
Regards,
Anthony Staples Technical Analyst Humana Inc. 502.580.2870
The information transmitted is intended only for the person or entity to which it is addressed and may contain CONFIDENTIAL material. If you receive this material/information in error, please contact the sender and delete or destroy the material/information.
The information transmitted is intended only for the person or entity to which it is addressed and may contain CONFIDENTIAL material. If you receive this material/information in error, please contact the sender and delete or destroy the material/information.
-- To unsubscribe, e-mail: suse-autoinstall-unsubscribe@suse.com For additional commands, e-mail: suse-autoinstall-help@suse.com The information transmitted is intended only for the person or entity to which it is addressed and may contain CONFIDENTIAL material. If you receive this material/information in error, please contact the sender and delete or destroy the material/information.
participants (2)
-
Anas Nashif
-
Anthony Staples