+# validate whether the specified architecture class matches the
+# architecture (option), otherwise installation of kernel will fail
+if echo $CLASSES | grep -qi i386 ; then
+ if ! [[ "$ARCH" == "i386" ]] ; then
+ eerror "You specified the I386 class but are trying to build something else (AMD64?)."
+ eerror "-> Either invoke grml-live with '-i i386' or adjust the architecture class. Exiting."
+ bailout
+ fi
+elif echo $CLASSES | grep -qi amd64 ; then
+ if ! [[ "$ARCH" == "amd64" ]] ; then
+ eerror "You specified the AMD64 class but are trying to build something else (I386?)."
+ eerror "-> Either invoke grml-live with '-i amd64' or adjust the architecture class. Exiting."
+ bailout
+ fi
+fi
+