Reboot in a post-script?
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
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
-- Roy Butler - MIST Development Environment Jet Propulsion Laboratory email: roy.butler@jpl.nasa.gov phone: 818-354-8825
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
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
participants (4)
-
Anas Nashif
-
Hubertus Haniel
-
Peter Schwenk
-
Roy Butler