summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-12-11 08:43:45 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2014-12-11 08:43:45 +0100
commit7148344a5a3b7a6d3063ec7d6b82bccfdd2ca5f1 (patch)
tree70d7c54166011a6fc53d6771fe43a1f95d2b5c98 /examples
parentd3fdba046ed9f991d86effd3ad39fab4a108c003 (diff)
downloadbiruda-7148344a5a3b7a6d3063ec7d6b82bccfdd2ca5f1.tar.gz
biruda-7148344a5a3b7a6d3063ec7d6b82bccfdd2ca5f1.tar.bz2
rhel gold image needs no git and needs /dev/ nodes
Diffstat (limited to 'examples')
-rw-r--r--examples/build_gold_image/build.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/build_gold_image/build.sh b/examples/build_gold_image/build.sh
index 7400dfe..a2eccd7 100644
--- a/examples/build_gold_image/build.sh
+++ b/examples/build_gold_image/build.sh
@@ -32,6 +32,11 @@ yum --installroot=`pwd`/$CHROOT_DIR install -y coreutils procps net-tools wget
# rebuild the RPM database with the rpm inside the chroot
chroot $CHROOT_DIR /bin/rpm -v --rebuilddb
+mknod -m 666 $CHROOT_DIR/dev/null c 1 3
+mknod -m 666 $CHROOT_DIR/dev/zero c 1 5
+mknod -m 666 $CHROOT_DIR/dev/random c 1 8
+mknod -m 666 $CHROOT_DIR/dev/urandom c 1 9
+
cp /etc/resolv.conf $CHROOT_DIR/etc/
cp $CHROOT_DIR/etc/skel/.bashrc $CHROOT_DIR/root
@@ -56,5 +61,4 @@ rpm -v --root=`pwd`/$CHROOT_DIR --import RPM-GPG-KEY-EPEL-6
rm RPM-GPG-KEY-CentOS-6
-yum --installroot=`pwd`/$CHROOT_DIR install -y make gcc gcc-c++ rpm-build tar ccache distcc git
-
+yum --installroot=`pwd`/$CHROOT_DIR install -y make gcc gcc-c++ rpm-build tar ccache distcc