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
F170853225: D58954.id185253.diff
Mon, Sep 7, 1:32 AM
F170817726: D58954.id185253.diff
Sun, Sep 6, 7:59 PM
F170816953: D58954.id184976.diff
Sun, Sep 6, 7:52 PM
F170816952: D58954.id184495.diff
Sun, Sep 6, 7:52 PM
F170816945: D58954.id184594.diff
Sun, Sep 6, 7:52 PM
F170816934: D58954.id184454.diff
Sun, Sep 6, 7:52 PM
F170816698: D58954.id184823.diff
Sun, Sep 6, 7:50 PM
F170816609: D58954.diff
Sun, Sep 6, 7:49 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 75788
Build 72671: arc lint + arc unit

Event Timeline

tools/tools/nanobsd/defaults.sh
1255

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