Page MenuHomeFreeBSD

etcupdate: Fix -N support for build command
ClosedPublic

Authored by jrtc27 on Sep 30 2022, 7:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 27, 4:20 AM
Unknown Object (File)
Mon, Mar 23, 6:33 AM
Unknown Object (File)
Tue, Mar 17, 2:28 AM
Unknown Object (File)
Mon, Mar 16, 9:42 PM
Unknown Object (File)
Sun, Mar 15, 4:11 PM
Unknown Object (File)
Feb 8 2026, 3:02 AM
Unknown Object (File)
Feb 7 2026, 6:22 PM
Unknown Object (File)
Jan 31 2026, 11:17 AM
Subscribers

Details

Summary

Whilst febca0e64361 added -N for both build and extract, it only fully
worked for extract; build would perform the actual tree build with
-DNO_ROOT and construct the intended METALOG, but the subsequent tarball
creation did not take this into account and just tarred up the the
directory as-is rather than using the METALOG. This resulted in the
permissions and ownership not being correct, as well as there being a
stray METALOG file in the tarball's root.

Reported by: avg
Tested by: avg
Fixes: febca0e64361 ("etcupdate: Add a -N flag to perform a NO_ROOT build")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 47663
Build 44550: arc lint + arc unit