Use ${NANO_WORLDDIR}/var/empty as copy source since it has no schg flag set.

Copying over /var/empty's schg flag had unpleasant side effects (schg flag on /etc and /cfg)
during nanobsd boot before.
This commit is contained in:
Michael Reifenberger 2011-03-28 07:00:41 +00:00
parent 1c675a3bc3
commit 9d47a91b22

View File

@ -413,8 +413,8 @@ populate_slice ( ) (
dir=$2
mnt=$3
lbl=$4
test -z $2 && dir=/var/empty
test -d $dir || dir=/var/empty
test -z $2 && dir=${NANO_WORLDDIR}/var/empty
test -d $dir || dir=${NANO_WORLDDIR}/var/empty
echo "Creating ${dev} with ${dir} (mounting on ${mnt})"
newfs_part $dev $mnt $lbl
cd ${dir}