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)
Wed, Apr 22, 3:20 PM
Unknown Object (File)
Wed, Apr 22, 8:47 AM
Unknown Object (File)
Sun, Apr 19, 11:22 AM
Unknown Object (File)
Wed, Apr 15, 2:29 AM
Unknown Object (File)
Wed, Apr 15, 1:43 AM
Unknown Object (File)
Wed, Apr 15, 12:42 AM
Unknown Object (File)
Sun, Apr 12, 11:23 PM
Unknown Object (File)
Fri, Mar 27, 4:20 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 Not Applicable
Unit
Tests Not Applicable