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
F167706736: D58961.id184512.diff
Sun, Aug 23, 9:34 PM
F167705851: D58961.id184753.diff
Sun, Aug 23, 9:29 PM
F167697296: D58961.id184461.diff
Sun, Aug 23, 8:26 PM
F167691468: D58961.id184326.diff
Sun, Aug 23, 7:41 PM
F167672830: D58961.id184512.diff
Sun, Aug 23, 4:58 PM
Unknown Object (File)
Sat, Aug 22, 1:19 PM
Unknown Object (File)
Fri, Aug 21, 12:24 PM
Unknown Object (File)
Fri, Aug 21, 12:23 PM
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 75714
Build 72597: arc lint + arc unit

Event Timeline

Clean up merge conflict markers in defaults.sh