Page MenuHomeFreeBSD

release/vm: fix setting NO_ROOT and WITHOUT_QEMU
ClosedPublic

Authored by brooks on Mar 27 2025, 11:24 PM.
Tags
None
Referenced Files
F152997499: D49544.id152776.diff
Sat, Apr 18, 1:22 PM
F152973832: D49544.id.diff
Sat, Apr 18, 10:28 AM
F152912964: D49544.id152773.diff
Sat, Apr 18, 12:02 AM
Unknown Object (File)
Thu, Apr 16, 12:57 AM
Unknown Object (File)
Sun, Apr 12, 1:01 AM
Unknown Object (File)
Thu, Apr 9, 7:42 PM
Unknown Object (File)
Thu, Apr 9, 1:18 PM
Unknown Object (File)
Thu, Apr 9, 8:31 AM
Subscribers

Details

Summary

To support common shell patterns (test -n and -z) we want NO_ROOT and
WITHOUT_QEMU to be set and not empty of they are set in the Makefile.
Actually do this rather than making them always set (which propogates
to submakes run by mk-vmimage.sh).

Reported by: cperciva
Sponsored by: DARPA, AFRL

Diff Detail

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

Event Timeline

Looks good to me. Slight commit message nit, the issue here is actually .if defined(NO_ROOT) in Makefile logic rather than -n or -z in a shell script. But the same concept applies.

This revision was not accepted when it landed; it landed in state Needs Review.Mar 27 2025, 11:53 PM
This revision was automatically updated to reflect the committed changes.