Menu

[r7624]: / trunk / patches / freebsd-nanobsd-3-immutable-var-empty.patch  Maximize  Restore  History

Download this file

14 lines (13 with data), 455 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
--- tools/tools/nanobsd/nanobsd.sh~ 2011-09-08 17:52:28.000000000 -0700
+++ tools/tools/nanobsd/nanobsd.sh 2011-09-08 17:53:04.000000000 -0700
@@ -366,8 +366,8 @@
dev=$1
dir=$2
mnt=$3
- test -z $2 && dir=/var/empty
- test -d $d || dir=/var/empty
+ test -z $2 && dir=${NANO_WORLDDIR}/var/empty
+ test -d $d || dir=${NANO_WORLDDIR}/var/empty
echo "Creating ${dev} with ${dir} (mounting on ${mnt})"
newfs ${NANO_NEWFS} ${dev}
mount ${dev} ${mnt}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.