summaryrefslogtreecommitdiffstats
path: root/share/examples/diskless
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2004-09-23 21:17:31 +0000
committerbrooks <brooks@FreeBSD.org>2004-09-23 21:17:31 +0000
commit78ea3f47104ee4b105df58e3a602e419390c587b (patch)
tree46beab9656c133fcd8d0d61cb00cca35217d3057 /share/examples/diskless
parentf2a11c9f2e7cf0a8afeb91bd96c79df921c86dea (diff)
downloadFreeBSD-src-78ea3f47104ee4b105df58e3a602e419390c587b.zip
FreeBSD-src-78ea3f47104ee4b105df58e3a602e419390c587b.tar.gz
Backout the hack to install mtree, newsyslog, and touch in the cloned
root in the previous commit. We'll fix /etc/rc.d/var directly (someday).
Diffstat (limited to 'share/examples/diskless')
-rwxr-xr-xshare/examples/diskless/clone_root4
1 files changed, 1 insertions, 3 deletions
diff --git a/share/examples/diskless/clone_root b/share/examples/diskless/clone_root
index f4505fe..9402c23 100755
--- a/share/examples/diskless/clone_root
+++ b/share/examples/diskless/clone_root
@@ -73,13 +73,11 @@ DEST=/diskless_root
# DIRS mountpoints (empty dirs)
# PWFILES files related to passwords
# TOCOPY files and dirs to copy from root partition
-# USRBINS binaries from /usr needed for tmp and var scripts
SYSDIRS="dev proc root usr var"
DIRS="cdrom home mnt"
PWFILES="master.passwd passwd spwd.db pwd.db"
TOCOPY="bin boot compat etc modules sbin stand sys"
-USRBINS="/usr/sbin/mtree /usr/sbin/newsyslog /usr/bin/touch"
init_diskless_root() {
echo "Cleaning old diskless root ($DEST)"
@@ -89,7 +87,7 @@ init_diskless_root() {
mkdir -p $DEST && echo "New diskless root created."
echo "+++ Now copy original tree from / ..."
ex=""
- (cd / ; tar -clf - ${TOCOPY} ${USRBINS} ) | (cd $DEST; tar xvf - )
+ (cd / ; tar -clf - ${TOCOPY} ) | (cd $DEST; tar xvf - )
#(cd / ; find -x dev | cpio -o -H newc ) | \
# (cd $DEST; cpio -i -H newc -d )
echo "+++ Fixing permissions on some objects"
OpenPOWER on IntegriCloud