summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/build_gold_image/biruda.conf7
-rwxr-xr-xexamples/build_gold_image/build_centos6.sh4
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