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:
parent
1c675a3bc3
commit
9d47a91b22
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user