Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171240432
D59039.id184499.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
949 B
Referenced Files
None
Subscribers
None
D59039.id184499.diff
View Options
diff --git a/tools/tools/nanobsd/_xxx_includes.subr b/tools/tools/nanobsd/_xxx_includes.subr
--- a/tools/tools/nanobsd/_xxx_includes.subr
+++ b/tools/tools/nanobsd/_xxx_includes.subr
@@ -45,6 +45,20 @@
# freebsd-base(7) (pkgbase) variables and functions
#
+# Append metalog entries for directories that lack pkg tags in
+# the given mtree spec. This should be fixed in pkg:
+# https://github.com/freebsd/pkg/issues/2672
+# $1 = mtree filename (under NANO_SRC/etc/mtree)
+# $2 = base dir prefix to prepend
+_xxx_get_untagged_directories_from_mtree() {
+ local mtree="$1"
+ local base_dir="$2"
+
+ cat "${NANO_SRC}/etc/mtree/${mtree}" |
+ mtree -C -K uname,gname,tags | grep -v tags |
+ sed -e "s|^\.|\.${base_dir}|g" >> "$NANO_METALOG"
+}
+
# mtree: ./boot/dtb/arm: missing directory in specification
# These directories are missing from BSD.root.dist, however
# I do not want to add them to the mtree. These must exist
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 10, 6:51 PM (12 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37031023
Default Alt Text
D59039.id184499.diff (949 B)
Attached To
Mode
D59039: nanobsd: Add _xxx_get_untagged_directories_from_mtree
Attached
Detach File
Event Timeline
Log In to Comment