freebsd-src/release
Colin Percival b485322d6b release: Only check no-root/no-qemu when building
Building VMs as non-root requires no-QEMU code paths (installing
packages from outside the VM image rather than inside it) and vice
versa; we have a check for broken combinations.

Unfortunately that check was breaking
make -C src/usr.sbin/pkg NO_ROOT=YES -V PKGCONFBRANCH
because that code reaches into src/release to determine the branch
name (which is then used to determine which /etc/pkg/FreeBSD.conf to
install).

Wrap the no-root/no-qemu check in an .if to only run when we've
asked for VM and/or CLOUD building to be enabled.

Reviewed by:	ivy
MFC after:	5 minutes
Sponsored by:	https://www.patreon.com/cperciva
Differential Revision:	https://reviews.freebsd.org/D53486
2025-10-30 13:50:38 -07:00
..
amd64 release/amd64: cleanup code duplication 2025-08-05 04:48:45 +03:00
arm release: remove arm/armv6 RPI-B configuration file 2023-08-31 19:24:38 -04:00
arm64 release/RPI: Add RPI Zero 2W device tree blob dtb 2025-10-08 12:34:25 -04:00
i386 release: Consistently use variables for invoking certain tools 2025-07-16 17:04:03 +02:00
packages zlib: Move to a new zlib package 2025-10-28 19:24:55 +00:00
pkg_repos Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
powerpc release: Fix typo in powerpc mkisoimages.sh 2025-09-15 18:11:21 -07:00
riscv release: Consistently use variables for invoking certain tools 2025-07-16 17:04:03 +02:00
scripts packages: Remove the /boot hack from mtree-to-plist.awk 2025-10-26 02:22:47 +00:00
tools release: Use PKG_CMD when installing pkgbase packages in vmimage.subr 2025-10-23 22:41:51 +00:00
Makefile release: Add pkg .conf to METALOG on dvd 2025-10-20 14:00:26 -07:00
Makefile.azure release: Use standard Azure disk image extension 2025-09-30 19:16:37 +00:00
Makefile.ec2 release: Remove extra blank comment lines 2025-06-17 14:26:42 -04:00
Makefile.firecracker Firecracker: Make root disk configurable 2023-08-07 09:21:08 -07:00
Makefile.gce release: Remove extra blank comment lines 2025-06-17 14:26:42 -04:00
Makefile.inc1 release: Pass PKG_INSTALL_EPOCH to vmimage.subr 2025-04-10 08:58:11 -07:00
Makefile.mirrors release: Remove errant .endfor 2025-10-10 21:10:08 -07:00
Makefile.oci release: Add images for almost all packages, with & without toolchain 2025-09-17 21:16:37 +00:00
Makefile.oracle release: split up Oracle Cloudware tools 2025-10-20 09:37:01 +00:00
Makefile.vagrant release: Remove extra blank comment lines 2025-06-17 14:26:42 -04:00
Makefile.vm release: Only check no-root/no-qemu when building 2025-10-30 13:50:38 -07:00
rc.local bsdinstall release: Start installer on multiple consoles 2022-10-03 17:09:17 +01:00
release.conf.sample release: add optional OCI images 2024-11-08 13:23:08 +00:00
release.sh release.sh: Pass through NO_ROOT 2025-09-23 17:32:27 -07:00