Yes the permeissions will make a difference I belive. I have a chmod 700 right after the creation of the script in the postinstall script. Regards Hubba On Fri, 4 Jun 2004, Peter A. Schwenk wrote:
Date: Fri, 4 Jun 2004 22:00:42 -0400 From: Peter A. Schwenk <schwenk@math.udel.edu> To: Hubertus Haniel <hubba@unixcook.com> Subject: Re: [suse-autoinstall] Reboot in a post-script?
I've tried various permutations of Roy Butler's solution, and I have yet to get it to work. I've tried putting the script in both /etc/init.d/rc3.d and /etc/init.d/rc5.d, and in both cases the script doesn't run (or doesn't cause a reboot). I even tried making a pre-script write a reboot script into these directories, and it still did not cause a reboot. The only thing I can think of is that the script didn't have execute permissions, but I don't think that matters.
On Jun 4, 2004, at 3:33 PM, Hubertus Haniel wrote:
I can confirm that Roy's solution works very well - I have used this for all my SLES8 deployments and I have done a lot of them. Rebooting at the end of a post scripts can cause grief if you have a lot of them and not just one.
Best regards Hubba
On Fri, 4 Jun 2004, Anas Nashif wrote:
Date: Fri, 04 Jun 2004 15:18:58 -0400 From: Anas Nashif <nashif@suse.de> To: suse-autoinstall@suse.com Subject: Re: [suse-autoinstall] Reboot in a post-script?
rebooting in postscripts should be OK if you run SuSEconfig before rebooting. Usually SuSEconfig is the last thing run after the post scripts are executed. The solution belwoe might also be a good idea, did not test it though. Alternative is to schedule a reboot using atd :-)
Anas
Roy Butler wrote:
Peter,
I'm not positive, but I think it may be a problem. What I believe would work in any case would be to create a post-script like so:
----------
#!/bin/sh
cat /etc/init.d/rc3.d/S99reboot << EOF
#!/bin/sh rm /etc/init.d/rc3.d/S99reboot reboot
EOF
----------
Good luck, Roy
Peter Schwenk wrote:
Hello:
I am using autoyast w/ SuSE 9.0, and I was wondering if it is a bad idea to reboot the system at the end of a post-script? Are there steps after the post-script that would be skipped? I'm doing an online_update in the post-script, and I would like to make sure that the system comes up with the new kernel. Thanks in advance for your help!
-- - Peter A. Schwenk | Mathematical Sciences - schwenk@math.udel.edu | University of Delaware - (302) 831-0437 | Newark, DE 19716-2553 USA
-- To unsubscribe, e-mail: suse-autoinstall-unsubscribe@suse.com For additional commands, e-mail: suse-autoinstall-help@suse.com
-- - Peter Schwenk - peterschwenk@comcast.net - '79 SF