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).
This commit is contained in:
parent
02910eee10
commit
f186a29521
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135639
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user