From b9f5121f535c0de65fab935a29bd3d6ad9dbc634 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Wed, 14 Jan 2009 20:30:21 +0100
Subject: Adding check for currently not supported bootloader/image-type
 combinations.

---
 functions/defaults.sh | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/functions/defaults.sh b/functions/defaults.sh
index 71769cf..9f6d1ab 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -821,4 +821,17 @@ Check_defaults ()
 				;;
 		esac
 	fi
+
+	if [ "${LH_BINARY_IMAGES}" = "usb-hdd" ]
+	then
+		# grub or yaboot + usb-hdd
+		case "${LH_BOOTLOADER}" in
+			grub|yaboot)
+				Echo_warning "You have selected a combination of bootloader and image type that is currently"
+				Echo_warning "not supported by live-helper. Please use either another bootloader or a"
+				Echo_warning "different image type."
+				exit 1
+				;;
+		esac
+	fi
 }
-- 
cgit v1.0