From b36d9c7c9044f0252a38c401877e8ea29d49da03 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 6 Apr 2015 20:30:53 +0200 Subject: work in progress, introduction of architecture variables --- examples/build_gold_image/biruda.conf | 7 ++++--- examples/build_gold_image/build_centos6.sh | 4 +--- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'examples') diff --git a/examples/build_gold_image/biruda.conf b/examples/build_gold_image/biruda.conf index 1344f6c..6a22a98 100644 --- a/examples/build_gold_image/biruda.conf +++ b/examples/build_gold_image/biruda.conf @@ -23,7 +23,8 @@ worker example_build_gold execution = direct - command = "/bin/sh ./build_centos6.sh x86_64" + command = "/bin/sh ./build_centos6.sh ${ARCH}" +# command = "/bin/sh ./build_centos6.sh x86_64" # command = "/bin/sh ./build_centos6.sh i686" } @@ -35,8 +36,8 @@ worker example_run execution = direct - command = "/bin/chroot rhel6-x64 /bin/bash -c '/bin/cat /etc/redhat-release'" -# command = "/bin/chroot rhel6-i686 /bin/bash -c '/bin/cat /etc/redhat-release'" +# command = "/bin/chroot rhel6-x64 /bin/bash -c '/bin/cat /etc/redhat-release'" + command = "/bin/chroot rhel6-i686 /bin/bash -c '/bin/cat /etc/redhat-release'" } webserver diff --git a/examples/build_gold_image/build_centos6.sh b/examples/build_gold_image/build_centos6.sh index 1645d79..8a64f57 100755 --- a/examples/build_gold_image/build_centos6.sh +++ b/examples/build_gold_image/build_centos6.sh @@ -8,13 +8,11 @@ ARCH=$1 case $ARCH in i686) - SHORT_ARCH=i686 PACKAGE_ARCH=i386 ARCH_SWITCH=linux32 ;; x86_64) - SHORT_ARCH=x64 PACKAGE_ARCH=x86_64 ARCH_SWITCH= ;; @@ -24,7 +22,7 @@ case $ARCH in exit 1 esac -CHROOT_DIR=rhel6-${SHORT_ARCH} +CHROOT_DIR=rhel6-${ARCH} rm -rf $CHROOT_DIR -- cgit v1.2.3-54-g00ecf