From c5d36989eea5a8ef82b1de194cb71f869555fe8b Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Mon, 27 Jul 2009 22:03:33 +0200 Subject: patches, fixes and cleanup for new grub code --- src/core/libs/lib-ui-interactive.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index f765d59..3743ca7 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -990,14 +990,15 @@ interactive_grub() { if [ "$GRUB_OK" == "1" ]; then notify "GRUB was successfully installed." else - notify "GRUB was NOT successfully installed." + show_warning "Grub installation failure" "GRUB was NOT successfully installed." return 1 fi return 0 fi } -interactive_grub_menulst() { +generate_grub_menulst() { + local grubmenu="$var_TARGET_DIR/boot/grub/menu.lst" get_device_with_mount '/' || return 1 local _rootpart=$ANSWER_DEVICE local _uuid="$(getuuid ${_rootpart})" @@ -1107,7 +1108,11 @@ initrd $subdir/kernel26-fallback.img #makeactive #chainloader +1 EOF +} +interactive_grub_menulst () { + local grubmenu="$var_TARGET_DIR/boot/grub/menu.lst" + generate_grub_menulst helptext= grep -q '^/dev/mapper' $TMP_FSTAB && helptext=" /dev/mapper/ users: Pay attention to the kernel line!" notify "Before installing GRUB, you must review the configuration file. You will now be put into the editor. After you save your changes and exit the editor, you can install GRUB.$helptext" -- cgit v1.2.3-54-g00ecf