﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
648	Additional Control Over Boot in Mindi Configuration	Matthew Ross	Bruno Cornec	"I have run into a scenario where it would be useful to have a little more control over how recovery media boots. In particular, the boot loader timeout and default boot option.

For my purposes, it would be useful to have restoration media timeout quickly and boot into expert mode as a default. Once booted the user will be able to select backups from library disk to restore from via a script (that eventually call on mondorestore).

Using mindi versus mondo would be an option to get expert working as the default but it would require that I handle the generation of CD/DVD media externally, something which mondo does nicely already.

The changes required to implement this are minimal.

Establish globals prior sourcing mindi.conf:
{{{
MINDI_ADDITIONAL_BOOT_PARAMS=""..."" 
MINDI_DEFAULT_BOOT_OPTION=""""
MINDI_BOOT_TIMEOUT=""""
}}}

in MakeBootConfFile, handle the mindi.conf default option and timeout for mondoarchive non-CDRECOVERY only:
{{{
MakeBootConfFile()
{
    ...
    # Compute which default option to boot from
    ...
    elif [ _""$MONDO_SHARE"" != _"""" ]; then
        if [ -e ""$MINDI_TMP/NETFS-DEV"" ]; then
            echo -en ""default${sep}iso\n""
        elif [ ""$MINDI_DEFAULT_BOOT_OPTION"" != """" ]; then
            LogIt ""Overriding default boot option: $MINDI_DEFAULT_BOOT_OPTION""
            echo -en ""default${sep}${MINDI_DEFAULT_BOOT_OPTION}\n""
        else
            echo -en ""default${sep}interactive\n""
        fi
    else
    ....
    # Handle timeout
    if [ ""$CDRECOVERY"" == ""yes"" ]; then
        echo -en ""timeout${sep}1000\n""
    elif [ ""$MINDI_BOOT_TIMEOUT"" != """" ]; then
        LogIt ""Overriding boot timeout: $MINDI_BOOT_TIMEOUT""
        echo -en ""timeout${sep}${MINDI_BOOT_TIMEOUT}\n""
    else
        echo -en ""timeout${sep}300\n""
    fi
    ....
}
}}}

A small change but one that would be useful."	enhancement	assigned	low	3.0.5	mindi	3.0.2	trivial			
