The following logic might work A ) From a ayast init script create a "autorestart" script which does: 1) determine default runlevel 2) waits until default runlevel is reached ( use "who -d ") and reboots system then. - Since the system gets auto booted as soon as the default run level is reached all system task or user initiated tasks should be finished. - autorestat should be run via nohup so the ayast init script can finish. Simple example of a ayast init script logic with reboot save :-) ( not tested !) $ cat cfg_int.scr #----- REBOOT AFTER WE REACHED THE L5 PROCESS ----# echo ' #!/bin/bash { while true ; do if who -d | grep -q "id=l5" ; then echo "INFO: Starting reboot " sleep 2 shutdown -Fr & # rm /tmp/autorestart wait else echo "INFO: Waiting for init to reach l5: state to initate reboot" sleep 15 fi done } ' > /tmp/autorestart chmod +x /tmp/autorestart nohup /tmp/autorestart & # More init script logic ...... -----Original -----Original Message----- From: Swartz, Patrick H [mailto:Patrick.Swartz@firstdata.com] Sent: Monday, May 23, 2011 7:58 PM To: opensuse-autoinstall@opensuse.org Subject: [opensuse-autoinstall] post-install reboot Hi All, We are finally close to our final autoyast.xml configuration, but have a question about forcing one more reboot. One of the last scripts we run is to setup the atomic update partition and cloning, after we do this we need the system to reboot. I have tried just adding a reboot to this script, but that doesn't work - guessing because the script is never "complete" and the system continues to reboot. Patrick Swartz UNIX Planning & Engineering (DSUSSE) First Data 402-777-7337 desk 402-201-1192 Company cell 402-871-8981 Personal cell ----------------------------------------- The information in this message may be proprietary and/or confidential, and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify First Data immediately by replying to this message and deleting it from your computer. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org