Page MenuHomeFreeBSD

release: Use unprivileged mode for bootonly and mini-memstick
ClosedPublic

Authored by emaste on Dec 17 2024, 3:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 9, 1:56 PM
Unknown Object (File)
Fri, Mar 7, 11:46 AM
Unknown Object (File)
Tue, Mar 4, 12:41 PM
Unknown Object (File)
Jan 26 2025, 4:37 PM
Unknown Object (File)
Jan 12 2025, 8:15 PM
Unknown Object (File)
Jan 11 2025, 2:31 PM
Unknown Object (File)
Jan 11 2025, 5:01 AM
Unknown Object (File)
Jan 11 2025, 4:36 AM
Subscribers

Details

Summary

This in effect always builds these targets in NO_ROOT mode, removing
one more instance where release artifact builds require a privileged
user (root). These artifacts are now always built the same way.

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Dec 17 2024, 8:44 PM
release/Makefile
321

As an aside I opened PR283387 NO_ROOT/METALOG support required for release/scripts/pkg-stage.sh for this. I believe this is the only issue standing in the way of using NO_ROOT for all of the release artifact targets.

I discovered PR284795 as a result of this work -- examining the resulting iso with bsdtar shows e.g.

drwx------  18 0      0        4096 Feb 13 13:53 .
drwxr-xr-x  2 0      0        6144 Feb 13 13:53 bin
-r-xr-xr-x  6 0      0           0 Feb 13 13:53 bin/cat link to bin
-r-xr-xr-x  6 0      0           0 Feb 13 13:53 bin/chflags link to bin
-r-xr-xr-x  6 0      0           0 Feb 13 13:53 bin/chio link to bin
...

This is solved by either one of D49134 and D49141; I will not commit this change until one of them is in.

emaste retitled this revision from release: Use NO_ROOT mode for bootonly and mini-memstick to release: Use unprivileged mode for bootonly and mini-memstick.Tue, Mar 4, 6:06 PM
emaste edited the summary of this revision. (Show Details)