Thinking about this some more, it seems to me that the fix for 6556 should be coordinated with the fix for 4407 otherwise we run the risk of potentially not being able to debug a bad install.
Alok On Mon, 2 Mar 2009, Alok Aggarwal wrote: > Hi Jan, > > This looks like a reasonable approach to me. > > Alok > > On Mon, 2 Mar 2009, jan damborsky wrote: > >> Currently, when Automated Installation is done, it waits for user >> to manually reboot the system. There is a desire to support >> automatic reboot feature, so that the overall process of the >> installation might be hands-off. This requirement is tracked >> by bug 6556. >> >> In order to provide end user with possibility to automatically >> reboot machine after AI is done, I am thinking about approach >> described in proposal below. >> >> Please let me know, if you think it should be modified or different >> approach should be taken. >> >> Thank you very much, >> Jan >> >> >> [1] introduce new element in AI manifest >> >> ... >> <optional> >> <element name="ai_auto_reboot"> >> <data type="boolean"/> >> </element> >> </optional> >> ... >> >> It would be optional - if not specified, machine would not reboot. >> >> [2] If 'ai_auto_reboot' option is provided and set >> to 'true', AI would 'touch' file in /tmp/ directory >> as indicator that auto reboot should take place. >> >> [3] Reboot in AI SMF service >> >> Reboot itself would be done from auto-installer SMF method as the >> last action - after AI engine is done and only if it returned success >> (in order to allow user inspect log files in case installer failed, >> since they might be unaccessible after reboot): >> >> SMF AI start method (/lib/svc/method/auto-installer): >> >> ... >> # Invoke AI engine to install the machine >> $AI_ENGINE -p $AISC_MANIFEST >> ret=$? >> >> if [ $ret -eq 0 ] ; then >> echo "Automated Installation finished successfully" > /dev/msglog >> if [ -f "$AUTO_REBOOT" ] ; then >> echo "Machine will be rebooted now" > /dev/msglog >> /usr/sbin/reboot >> else >> fi >> else >> fi >> >> _______________________________________________ >> caiman-discuss mailing list >> caiman-discuss at opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/caiman-discuss >> > _______________________________________________ > caiman-discuss mailing list > caiman-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/caiman-discuss >