jan damborsky stated:
> 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.

 Thanks Jan, looks good.  This will be a step towards fully automated
  and configured  installs - just needing the pre/post install 'script' 
  features next :)

Regards,
Sean.
.
>
> 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

-- 
Sean.
.

Reply via email to