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)
Thu, Jan 23, 8:09 PM
Unknown Object (File)
Fri, Jan 10, 2:24 PM
Unknown Object (File)
Dec 27 2024, 5:26 AM
Unknown Object (File)
Dec 26 2024, 3:50 AM
Unknown Object (File)
Dec 25 2024, 9:22 PM
Unknown Object (File)
Dec 25 2024, 10:47 AM
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.Thu, Jan 9, 5:20 PM