X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=147465afa6a2afd528bcfc80b8867bd392c377e8;hp=0c0df3f8339297733c86d6381e9eeb4a729cd033;hb=134498c077007fa91c198a0fe6354466cb6a5ae7;hpb=7ec9ddcb8c901ce700b2a9a216f47de95f5a274d;ds=sidebyside 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] {{{