Page MenuHomeFreeBSD

nanobsd: Synchronize target pkg database with image modifications
Needs ReviewPublic

Authored by senguptaangshuman17_gmail.com on Wed, Aug 19, 10:17 AM.
Tags
None
Referenced Files
F169132651: D58954.id184454.diff
Mon, Aug 31, 1:08 PM
F169099600: D58954.id184594.diff
Mon, Aug 31, 10:08 AM
F169080449: D58954.diff
Mon, Aug 31, 8:53 AM
F169070589: D58954.id184319.diff
Mon, Aug 31, 8:03 AM
F169070559: D58954.id184823.diff
Mon, Aug 31, 8:03 AM
F169040426: D58954.id.diff
Mon, Aug 31, 5:24 AM
F168969883: D58954.diff
Mon, Aug 31, 12:29 AM
F168937878: D58954.id184976.diff
Sun, Aug 30, 8:39 PM
Subscribers

Details

Reviewers
jlduran
jrm
ashish
Summary

Add helper functions to update the target pkg SQLite database when NanoBSD modifies configuration files and filesystem layout:

  • Refresh config_files content and sha256 checksums when etc/defaults/rc.conf, etc/ttys, or etc/ssh/sshd_config are modified.
  • Update files table paths from /usr/local/etc to /etc/local.
  • Repoint /tmp rows to /var/tmp in pkg_directories after /tmp is symlinked.
  • Set file mtimes and package times to NANO_TIMESTAMP for reproducible builds.

Diff Detail

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

Event Timeline

tools/tools/nanobsd/defaults.sh
1320

I don't think you can have an empty if body. Try using : in the meantime.

Consolidate target pkg database synchronization (merges D58954, D58955, D58960)

Normalize comment line wrap in config files update helper