From 7148344a5a3b7a6d3063ec7d6b82bccfdd2ca5f1 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 11 Dec 2014 08:43:45 +0100 Subject: rhel gold image needs no git and needs /dev/ nodes --- examples/build_gold_image/build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'examples') 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 -- cgit v1.2.3-54-g00ecf