Page MenuHomeFreeBSD

release: Enable installing packages as a non-root user
ClosedPublic

Authored by markj on Sep 9 2025, 2:54 PM.
Tags
None
Referenced Files
F132630941: D52453.id162171.diff
Sat, Oct 18, 2:27 PM
Unknown Object (File)
Sat, Oct 18, 12:05 AM
Unknown Object (File)
Fri, Oct 17, 11:29 PM
Unknown Object (File)
Tue, Oct 14, 11:16 PM
Unknown Object (File)
Sun, Oct 12, 2:23 PM
Unknown Object (File)
Sun, Oct 12, 1:01 PM
Unknown Object (File)
Thu, Oct 9, 10:41 PM
Unknown Object (File)
Thu, Oct 9, 10:41 PM

Details

Summary

Provide variables, PKG_REPOS_DIR and PKG_REPO_NAME, to allow the user to
configure the source package repository. Configure pkg to emit added
files to a metalog which gets concatenated with the main metalog
immediately before we build the root filesystem.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Sep 9 2025, 2:54 PM

Please move this before D52451 / D52452 when you land these since those commit messages refer to this change,

release/Makefile.vm
143

s/FreeBSD/FreeBSD-ports/ now?

199

FreeBSD-ports

release/tools/vmimage.subr
166

Should we keep this for the non-NO_ROOT case?

markj marked 3 inline comments as done.

Address comments.

release.7 updates to come.

Please move this before D52451 / D52452 when you land these since those commit messages refer to this change,

Will do.

This revision is now accepted and ready to land.Sep 10 2025, 12:10 AM
This revision now requires review to proceed.Sep 11 2025, 4:14 PM

Looks good, one small question.

release/tools/vmimage.subr
173

Do we need to add -o ABI also, like 340e68fd7c0d62cac1f0876b6475a89df5065db5
Or, does ABI get set from the -r?

markj added inline comments.
release/tools/vmimage.subr
173

I believe it's not required, pkg will infer it from /usr/bin/uname relative to the rootdir.

This revision is now accepted and ready to land.Sep 15 2025, 3:39 PM
This revision was automatically updated to reflect the committed changes.
markj marked an inline comment as done.