RE: [suse-autoinstall] Performing an online update from within an init script
# From: Richard Hobbs [mailto:richard.hobbs@crl.toshiba.co.uk] # Sent: Wednesday, February 15, 2006 7:42 AM # To: suse-autoinstall@suse.com # Subject: [suse-autoinstall] Performing an online update from within an init script # # Hello, # # Is it possible to run an online update using YaST2 from within an init # script? # # If so, which command should I use, and how can I specify what types of # packages I want to upgrade (e.g. security, recommended etc...)? # # Thanks in advance, people :-) This should get you started - run this as an init_script: #!/bin/sh /bin/chvt 9 exec < /dev/tty9 > /dev/tty9 echo Performing online update... online_update -l en -u <<<<url_to_update_from>>>> -V SuSEconfig echo Rebooting the computer now to use the new kernel. sleep 5 /bin/chvt 1 shutdown -r now
Hello, I have several init scripts, the last of which sends me an email to say the machine is finished, but if this init script runs before the last init script, will I still get an email? I suppose what I'm asking is, if an init script reboots the machine, will the remaining init scripts still get executed? Thanks again, Richard. -- Richard Hobbs (Systems Administrator) Toshiba Research Europe Ltd. - Speech Technology Group Web: http://www.toshiba-europe.com/research/ Normal Email: richard.hobbs@crl.toshiba.co.uk Mobile Email: mobile@mongeese.co.uk Tel: +44 1223 376964 Mobile: +44 7811 803377
-----Original Message----- From: Schumacher, Gordon [mailto:gordon_schumacher@maxtor.com] Sent: 15 February 2006 20:04 To: suse-autoinstall@suse.com Subject: RE: [suse-autoinstall] Performing an online update from within an init script
# From: Richard Hobbs [mailto:richard.hobbs@crl.toshiba.co.uk] # Sent: Wednesday, February 15, 2006 7:42 AM # To: suse-autoinstall@suse.com # Subject: [suse-autoinstall] Performing an online update from within an init script # # Hello, # # Is it possible to run an online update using YaST2 from within an init # script? # # If so, which command should I use, and how can I specify what types of # packages I want to upgrade (e.g. security, recommended etc...)? # # Thanks in advance, people :-)
This should get you started - run this as an init_script:
#!/bin/sh /bin/chvt 9 exec < /dev/tty9 > /dev/tty9 echo Performing online update... online_update -l en -u <<<<url_to_update_from>>>> -V SuSEconfig echo Rebooting the computer now to use the new kernel. sleep 5 /bin/chvt 1 shutdown -r now
-- To unsubscribe, e-mail: suse-autoinstall-unsubscribe@suse.com For additional commands, e-mail: suse-autoinstall-help@suse.com
_____________________________________________________________________ This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com
_____________________________________________________________________ This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com
participants (2)
-
Richard Hobbs
-
Schumacher, Gordon