diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/build_gold_image/build.sh | 8 |
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 |