From cc90fb589c8e266e747ee6bfb018f889145d344e Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 30 Jul 2012 14:02:18 +0000 Subject: [PATCH] Support installing i386 systems using arch=i386 boot option Might become useful for low-mem VMs once, implemented while figuring out installing an etch system for Andi :) From: Michael Prokop --- deployment.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deployment.sh b/deployment.sh index 61b7ab7..1e6fd2e 100755 --- a/deployment.sh +++ b/deployment.sh @@ -188,6 +188,11 @@ if checkBootParam "debianrelease" ; then DEBIAN_RELEASE=$(getBootParam debianrelease) fi +ARCH=$(dpkg --print-architecture) +if checkBootParam "arch" ; then + ARCH=$(getBootParam arch) +fi + # test unfinished releases against # "http://deb.sipwise.com/autobuild/ release-$AUTOBUILD_RELEASE" if checkBootParam ngcpautobuildrelease ; then @@ -729,6 +734,7 @@ esac # install Debian echo y | grml-debootstrap \ + --arch "${ARCH}" \ --grub /dev/${DISK} \ --hostname "${TARGET_HOSTNAME}" \ --mirror "$MIRROR" \