-# OPTIONS GETTING DIALOG {{{
-function optGrml2Hd
-{
- local GRML2HD_TITLE_='Grml2hd options dialog'
- local tmp_=''
- local options_='BOOT_IMAGE=grml2hd'
-
- # get partition to install grml2hd on
- OPTIONS_PARTITION_MSG_='Please specify the target partition where to install grml'
- PARTITION_TITLE_='Partition selection'
- echo -n "" >"$TMP_"
- $DIALOG_ --clear --backtitle "$BACK_TITLE_" --title "$PARTITION_TITLE_" --inputbox \
- "$OPTIONS_PARTITION_MSG_" 0 75 '/dev/hda1' 2>$TMP_ || die "problems getting partition"
- tmp_="partition=$(<$TMP_)"
- options_="$options_ $tmp_"
-
- # get filesystem type
- OPTION_FS_TYPE_='Please specify the filesystem type'
- FS_TITLE_='Filesystem selection'
- echo -n "" >"$TMP_"
- $DIALOG_ --clear --backtitle "$BACK_TITLE_" --title "$FS_TITLE_" --inputbox \
- "$OPTION_FS_TYPE_" 0 75 'ext3' 2>$TMP_ || die "problems getting filesystem type"
- tmp_="filesystem=$(<$TMP_)"
- options_="$options_ $tmp_"
-
- # get where to save mbr
- OPTION_MBR_='Please specify the location where to save the mbr'
- MBR_TITLE_='Select location of mbr'
- echo -n "" >"$TMP_"
- $DIALOG_ --clear --backtitle "$BACK_TITLE_" --title "$MBR_TITLE_" --inputbox \
- "$OPTION_MBR_" 0 75 '/dev/hda' 2>$TMP_ || die "problems getting location where to write mbr"
- tmp_="mbr=$(<$TMP_)"
- options_="$options_ $tmp_"
-
- # get first user
- OPTION_USER_='Who should be the first user on the system'
- USER_TITLE_='User selection'
- echo -n "" >"$TMP_"
- $DIALOG_ --clear --backtitle "$BACK_TITLE_" --title "$USER_TITLE_" --inputbox \
- "$OPTION_USER_" 0 75 'grml' 2>$TMP_ || die "problems getting first user of system"
- tmp_="user=$(<$TMP_)"
- options_="$options_ $tmp_"
-
- BOOT_ARGS_="$options_"
-}
-#}}}
-
-