CACHED=one_zero(have_cache(context.config)),
)
+ if context.config.profile:
+ env["PROFILE"] = context.config.profile
+
# We make sure to mount everything in to make ssh work since syncing might involve git which could invoke ssh.
if agent := os.getenv("SSH_AUTH_SOCK"):
env["SSH_AUTH_SOCK"] = agent
WITH_TESTS=one_zero(context.config.with_tests),
)
+ if context.config.profile:
+ env["PROFILE"] = context.config.profile
+
with (
mount_build_overlay(context) if build else contextlib.nullcontext(),
finalize_chroot_scripts(context) as cd,
WITH_TESTS=one_zero(context.config.with_tests),
)
+ if context.config.profile:
+ env["PROFILE"] = context.config.profile
+
if context.config.build_dir is not None:
env |= dict(
BUILDDIR="/work/build",
MKOSI_CONFIG="/work/config.json",
)
+ if context.config.profile:
+ env["PROFILE"] = context.config.profile
+
with (
finalize_chroot_scripts(context) as cd,
finalize_source_mounts(context.config, ephemeral=context.config.build_sources_ephemeral) as sources,
MKOSI_CONFIG="/work/config.json",
)
+ if context.config.profile:
+ env["PROFILE"] = context.config.profile
+
with (
finalize_chroot_scripts(context) as cd,
finalize_source_mounts(context.config, ephemeral=context.config.build_sources_ephemeral) as sources,
* `$RELEASE` contains the release from the `Release=` setting.
+* `$PROFILE` contains the profile from the `Profile=` setting.
+
* `$CACHED=` is set to `1` if a cached image is available, `0` otherwise.
* `$CHROOT_SCRIPT` contains the path to the running script relative to
| `ARCHITECTURE` | X | X | X | X | X |
| `DISTRIBUTION` | X | X | X | X | X |
| `RELEASE` | X | X | X | X | X |
+| `PROFILE` | X | X | X | X | X |
| `CACHED` | X | | | | |
| `CHROOT_SCRIPT` | | X | X | X | X |
| `SRCDIR` | X | X | X | X | X |