Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109431907
D48786.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
731 B
Referenced Files
None
Subscribers
None
D48786.diff
View Options
diff --git a/tools/tools/nanobsd/defaults.sh b/tools/tools/nanobsd/defaults.sh
--- a/tools/tools/nanobsd/defaults.sh
+++ b/tools/tools/nanobsd/defaults.sh
@@ -282,6 +282,25 @@
fi
)
+#
+# Create directories in the target tree, and record the fact. All paths
+# are relative to NANO_WORLDDIR.
+#
+tgt_dir ( ) (
+ for i; do
+ mkdir -p "${NANO_WORLDDIR}/${i}"
+
+ if [ -n "$NANO_METALOG" ]; then
+ path=""
+ for dir in $(echo "$i" | tr "/" " "); do
+ path="${path}/${dir}"
+ echo ".${path} type=dir uname=${NANO_DEF_UNAME}" \
+ "gname=${NANO_DEF_GNAME} mode=0755" >> "${NANO_METALOG}"
+ done
+ fi
+ done
+)
+
# run in the world chroot, errors fatal
CR ( ) {
chroot "${NANO_WORLDDIR}" /bin/sh -exc "$*"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 5, 11:46 PM (20 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16395560
Default Alt Text
D48786.diff (731 B)
Attached To
Mode
D48786: nanobsd: Add a function to create directories
Attached
Detach File
Event Timeline
Log In to Comment