HomeFreeBSD

mkimg: Add a reproducible mode

Description

mkimg: Add a reproducible mode

mkimg embeds a UUID in the GPT header and uses the current time of day
to generate it, so its output is not reproducible by default. Add a -R
flag to ask it to use a fixed time for UUID generation.

Merge the FreeBSD-specific implementation of osdep_uuidgen() with that
of Linux, as the use of uuidgen(2) is incompatible with reproducible
output mode.

Reviewed by: bnovkov
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D49716

(cherry picked from commit 95ac5b0e27e9070ba91c28f9a6ecbed743d148cb)

Details

Provenance
markjAuthored on Jun 26 2025, 2:28 PM
Reviewer
bnovkov
Differential Revision
D49716: mkimg: Add a reproducible mode
Parents
rGe9e13081931f: dtrace: fix symbol address resolution
Branches
Unknown
Tags
Unknown