Page MenuHomeFreeBSD

release: install pkg to install media
ClosedPublic

Authored by ifreund_freebsdfoundation.org on Apr 23 2025, 7:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 15, 8:33 PM
Unknown Object (File)
Sat, May 10, 1:04 AM
Unknown Object (File)
Mon, May 5, 2:37 PM
Unknown Object (File)
Sat, May 3, 8:32 AM
Unknown Object (File)
Sat, May 3, 8:32 AM
Unknown Object (File)
Sat, May 3, 8:32 AM
Unknown Object (File)
Sat, May 3, 8:32 AM
Unknown Object (File)
Sat, May 3, 8:32 AM

Details

Summary

This is the most straightforward way to make installation of base system
packages from install media possible. Bootstrapping pkg at install time
does not work since the root filesystem of install media is immutable.

Sponsored by: The FreeBSD Foundation

Diff Detail

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

Event Timeline

What do you think about (perhaps as a follow-up) moving this to a function that takes a list of packages to install?

This revision is now accepted and ready to land.Apr 23 2025, 7:02 PM

releng I'm tempted to merge this change ASAP even if we don't bring in the rest of the pkgbase functionality yet, to try to get as much testing on any of the subparts as possible. Any objection?

I didn't need this for wifi as we run pkg inside the new installation later and there it gets bootstrapped automatically; this will all change now I presume :)

Here's my git branch with this commit: https://github.com/ifreund/freebsd-src/tree/install-media-pkg

What do you think about (perhaps as a follow-up) moving this to a function that takes a list of packages to install?

I'd be happy to refactor this in a followup, but I must admit I'm not sure what you mean by a function here? I can't seem to find anything about user-defined functions in make(1). Is there an example somewhere in the src tree you could point me to?

I'd be happy to refactor this in a followup, but I must admit I'm not sure what you mean by a function here? I can't seem to find anything about user-defined functions in make(1). Is there an example somewhere in the src tree you could point me to?

Oh, nevermind - somehow I confused myself and thought this was shell, or something.

This revision was automatically updated to reflect the committed changes.