From 134498c077007fa91c198a0fe6354466cb6a5ae7 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Thu, 20 Feb 2014 22:45:16 +0000 Subject: [PATCH 1/1] It is not possible to build amd64 on i386. Break when the user attempts to do this. --- grml-debootstrap | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/grml-debootstrap b/grml-debootstrap index 0c0df3f..147465a 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -792,6 +792,16 @@ else fi # }}} +# It is not possible to build amd64 on i686. {{{ +CURRENT_ARCH="$(uname -m)" +if [ "$CURRENT_ARCH" != "x86_64" ] ; then + if [ "$ARCH" = "amd64" ] ; then + eerror "It is not possible to build amd64 on $CURRENT_ARCH." ; eend 1 + bailout 1 + fi +fi +# }}} + checkconfiguration # finally make sure at least $TARGET is set [the partition for the new system] {{{ -- 2.1.4