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, Feb 17, 5:16 PM
Unknown Object (File)
Mon, Feb 3, 1:23 PM
Unknown Object (File)
Sun, Jan 26, 10:34 AM
Unknown Object (File)
Sat, Jan 25, 2:03 PM
Unknown Object (File)
Jan 18 2025, 8:05 PM
Unknown Object (File)
Jan 17 2025, 11:07 PM
Unknown Object (File)
Jan 17 2025, 5:53 PM
Unknown Object (File)
Jan 10 2025, 8:58 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 Not Applicable
Unit
Tests Not Applicable