Page MenuHomeFreeBSD

release: Prepare EC2 cloudware images to be buildable as non-root
ClosedPublic

Authored by markj on Sep 9 2025, 2:54 PM.
Tags
None
Referenced Files
F162630710: D52452.diff
Wed, Jul 15, 6:43 AM
F162630709: D52452.diff
Wed, Jul 15, 6:43 AM
Unknown Object (File)
Mon, Jul 13, 1:19 PM
Unknown Object (File)
Mon, Jul 13, 1:16 PM
Unknown Object (File)
Sat, Jul 4, 2:41 AM
Unknown Object (File)
Tue, Jun 30, 4:16 AM
Unknown Object (File)
Tue, Jun 30, 4:16 AM
Unknown Object (File)
Sun, Jun 28, 3:00 PM
Subscribers

Details

Summary
  • Avoid chrooting to uninstall pkg, as it will not be installed in the first place.
  • Add metalog entries.

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
release/tools/ec2-builder.conf
59

Do we have cases where we'd add ./boot/loader.conf twice? (E.g., here and in ec2.conf)

release/tools/ec2-builder.conf
59

Yes. It can happen even more than that, e.g., vmimage.subr will add loader.conf entries if the root file system is on ZFS.

It's harmless to have duplicate entries. I suspect the right solution is to have each cloudware variant specify its modifications declaratively rather than having code which hacks up the image in various ad-hoc ways.

This revision is now accepted and ready to land.Sep 9 2025, 7:46 PM