Page MenuHomeFreeBSD

release/vm: fix setting NO_ROOT and WITHOUT_QEMU
ClosedPublic

Authored by brooks on Thu, Mar 27, 11:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 4, 2:15 PM
Unknown Object (File)
Fri, Apr 4, 6:24 AM
Unknown Object (File)
Thu, Apr 3, 6:25 PM
Unknown Object (File)
Wed, Apr 2, 11:14 AM
Unknown Object (File)
Tue, Apr 1, 3:44 AM
Unknown Object (File)
Sun, Mar 30, 8:33 AM
Unknown Object (File)
Sat, Mar 29, 4:06 PM
Unknown Object (File)
Sat, Mar 29, 11:58 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 Not Applicable
Unit
Tests Not Applicable

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.Thu, Mar 27, 11:53 PM
This revision was automatically updated to reflect the committed changes.