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)
Mon, Nov 4, 4:50 AM
Unknown Object (File)
Sun, Nov 3, 9:37 PM
Unknown Object (File)
Oct 2 2024, 6:03 AM
Unknown Object (File)
Sep 27 2024, 4:55 AM
Unknown Object (File)
Sep 21 2024, 1:38 PM
Unknown Object (File)
Sep 21 2024, 1:38 PM
Unknown Object (File)
Sep 21 2024, 1:38 PM
Unknown Object (File)
Sep 21 2024, 1:28 PM
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