Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167685924
D59046.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
629 B
Referenced Files
None
Subscribers
None
D59046.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
@@ -268,3 +268,14 @@
tgt_pkg_chroot triggers
fi
}
+
+#
+# XXX: Ship without a pkg database by default, and include the SQL dump
+# on request via a cust_ script, that self-restores on firstboot.
+# This allows for deterministic pkgbase images
+# (semi-deterministic, as the dump will change every time)
+#
+_xxx_pkg_db_dump_or_vacuum() {
+ tgt_pkg shell "VACUUM; PRAGMA integrity_check;"
+ tgt_pkg shell ".dump" > ${NANO_OBJ}/_.pkg.sql
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Aug 24, 6:49 PM (6 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37047215
Default Alt Text
D59046.diff (629 B)
Attached To
Mode
D59046: nanobsd: Add _xxx_pkg_db_dump_or_vacuum
Attached
Detach File
Event Timeline
Log In to Comment