diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-04-06 20:30:53 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-04-06 20:30:53 +0200 |
commit | b36d9c7c9044f0252a38c401877e8ea29d49da03 (patch) | |
tree | bb3978438b70b6ddd694efc913edd8b4d9e5e8d1 /examples | |
parent | 4b4c275d5545bbdc40a8b0ef036d1417c314c90a (diff) | |
download | biruda-b36d9c7c9044f0252a38c401877e8ea29d49da03.tar.gz biruda-b36d9c7c9044f0252a38c401877e8ea29d49da03.tar.bz2 |
work in progress, introduction of architecture variables
Diffstat (limited to 'examples')
-rw-r--r-- | examples/build_gold_image/biruda.conf | 7 | ||||
-rwxr-xr-x | examples/build_gold_image/build_centos6.sh | 4 |
2 files changed, 5 insertions, 6 deletions
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 |