Page MenuHomeFreeBSD

nanobsd: Clean up target pkg database and metalog after install
Needs ReviewPublic

Authored by senguptaangshuman17_gmail.com on Wed, Aug 19, 10:20 AM.
Tags
None
Referenced Files
F167310908: D58961.diff
Thu, Aug 20, 8:22 PM
Unknown Object (File)
Wed, Aug 19, 6:58 PM
Unknown Object (File)
Wed, Aug 19, 11:49 AM
Unknown Object (File)
Wed, Aug 19, 11:48 AM
Subscribers

Details

Reviewers
jlduran
jrm
ashish
Summary

Add _xxx_fix_pkg_permissions to fix the libsa.3.gz and /root
permissions in the target pkg database until pkg metalog generation
is fixed upstream, _xxx_pkg_db_dump_or_vacuum to verify and compact
the target pkg database after the manual SQL edits and dump it as a
backup (also helps produce deterministic images), and
_xxx_pkg_add_var_db_files_to_metalog to add the generated
/var/db/pkg files to the metalog, since pkg does not emit entries
for files it generates locally.

Also document _xxx_pkg_metalog's existing permission fixups by
referencing the same upstream pkg issue and adding before/after
permission examples, matching the rationale given for
_xxx_fix_pkg_permissions above.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 75841
Build 72724: arc lint + arc unit