Page MenuHomeFreeBSD

release: install etc files from the source tree, not the host
ClosedPublic

Authored by dfr on Dec 23 2024, 1:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 16, 7:16 AM
Unknown Object (File)
Feb 26 2025, 7:31 PM
Unknown Object (File)
Feb 22 2025, 2:30 PM
Unknown Object (File)
Feb 22 2025, 2:00 PM
Unknown Object (File)
Feb 18 2025, 11:20 PM
Unknown Object (File)
Feb 6 2025, 4:25 AM
Unknown Object (File)
Feb 6 2025, 12:36 AM
Unknown Object (File)
Feb 1 2025, 10:15 PM
Subscribers

Diff Detail

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

Event Timeline

dfr requested review of this revision.Dec 23 2024, 1:25 PM
release/tools/oci-image-static.conf
18–19

Do we need to use a cross tool for this? I don't recall whether the password database format is portable.

release/tools/oci-image-static.conf
18–19

There is a cross tool for pwd_mkdb but as far as I can tell, it should be fine to use the host's (or chroot's) version. The password database is a simple Berkeley DB file and a glance at the sources (src/lib/libc/db) show that the on-disk format is host-indepenent. I have tested cross building arm64 images with no problems (which doesn't mean much since arm64 is little-endian).

I'm not sure the best way to make this script use the cross tool from OBJDIR - possibly some Makefile magic to change PATH? How does this work for 'make distributeworld'?

Override PATH for make-oci-image.sh so that we get pwd_mkdb from the cross tools rather than the host.

Are there any other concerms for this one - I would like to land it and move onto the shell-based container image build.

This revision is now accepted and ready to land.Jan 9 2025, 5:20 PM