diff options
author | John Marino <marino@FreeBSD.org> | 2014-10-31 16:34:20 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2014-10-31 16:34:20 +0000 |
commit | 166701d1cc346a9b5f219299bf4d222e23ce2336 (patch) | |
tree | b38f051868bea6dcf8adccf744e0fc39a3207f2b /sysutils/rinse/files/patch-scripts.common__20-dev-zero.sh | |
parent | - Fix invalid date (diff) |
Add new port sysutils/rinse
PR: 193493
Submitted by: Jan Beich
Rinse is a simple tool which is designed to carry out the installation
of a new RPM-based distribution. Using rinse you can easily setup simple
chroot() systems running different RPM-based distributions, such as
Centos, Scientific Linux or openSUSE.
The purpose and usage are analogous to the 'debootstrap' utility
familiar to users of Debian GNU/Linux. It was primarily designed to
work with the xen-tools software, which creates new guest images for
running inder the Xen hypervisor.
Notes
Notes:
svn path=/head/; revision=371874
Diffstat (limited to 'sysutils/rinse/files/patch-scripts.common__20-dev-zero.sh')
-rw-r--r-- | sysutils/rinse/files/patch-scripts.common__20-dev-zero.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sysutils/rinse/files/patch-scripts.common__20-dev-zero.sh b/sysutils/rinse/files/patch-scripts.common__20-dev-zero.sh new file mode 100644 index 000000000000..7dadbbae5453 --- /dev/null +++ b/sysutils/rinse/files/patch-scripts.common__20-dev-zero.sh @@ -0,0 +1,27 @@ +--- scripts.common/20-dev-zero.sh~ ++++ scripts.common/20-dev-zero.sh +@@ -30,15 +30,19 @@ fi + # + # Create the node + # ++if [ ! -e "${prefix}/dev/null" ]; then ++ mount -t devfs none "${prefix}/dev" ++ devfs -m "${prefix}/dev" rule apply hide ++ devfs -m "${prefix}/dev" rule apply path null unhide ++fi ++ + if [ ! -e "${prefix}/dev/zero" ]; then +- mknod -m 666 "${prefix}/dev/zero" c 1 5 ++ devfs -m "${prefix}/dev" rule apply path zero unhide + fi + + if [ ! -e "${prefix}/dev/random" ]; then +- mknod -m 666 "${prefix}/dev/random" c 1 8 +- chown root:root "${prefix}/dev/random" ++ devfs -m "${prefix}/dev" rule apply path random unhide + fi + if [ ! -e "${prefix}/dev/urandom" ]; then +- mknod -m 666 "${prefix}/dev/urandom" c 1 9 +- chown root:root "${prefix}/dev/urandom" ++ devfs -m "${prefix}/dev" rule apply path urandom unhide + fi |