Page MenuHomeFreeBSD

D59046.diff
No OneTemporary

D59046.diff

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

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)

Event Timeline