SRCDIR="/work/src",
MKOSI_UID=str(os.getuid()),
MKOSI_GID=str(os.getgid()),
+ DEBUG=one_zero(ARG_DEBUG.get()),
)
if config.profiles:
MKOSI_GID=str(os.getgid()),
MKOSI_CONFIG="/work/config.json",
CACHED=one_zero(have_cache(config)),
+ DEBUG=one_zero(ARG_DEBUG.get()),
)
if config.profiles:
WITH_DOCS=one_zero(context.config.with_docs),
WITH_NETWORK=one_zero(context.config.with_network),
WITH_TESTS=one_zero(context.config.with_tests),
+ DEBUG=one_zero(ARG_DEBUG.get()),
)
if context.config.profiles:
WITH_DOCS=one_zero(context.config.with_docs),
WITH_NETWORK=one_zero(context.config.with_network),
WITH_TESTS=one_zero(context.config.with_tests),
+ DEBUG=one_zero(ARG_DEBUG.get()),
)
if context.config.profiles:
MKOSI_GID=str(os.getgid()),
MKOSI_CONFIG="/work/config.json",
WITH_NETWORK=one_zero(context.config.with_network),
+ DEBUG=one_zero(ARG_DEBUG.get()),
)
if context.config.profiles:
MKOSI_GID=str(os.getgid()),
MKOSI_CONFIG="/work/config.json",
WITH_NETWORK=one_zero(context.config.with_network),
+ DEBUG=one_zero(ARG_DEBUG.get()),
)
if context.config.profiles:
MKOSI_UID=str(os.getuid()),
MKOSI_GID=str(os.getgid()),
MKOSI_CONFIG="/work/config.json",
+ DEBUG=one_zero(ARG_DEBUG.get()),
)
if context.config.profiles:
MKOSI_UID=str(os.getuid()),
MKOSI_GID=str(os.getgid()),
MKOSI_CONFIG="/work/config.json",
+ DEBUG=one_zero(ARG_DEBUG.get()),
)
if config.profiles:
* `$IMAGE_VERSION` contains the version from the `ImageVersion=` or `--image-version=` setting.
+* `$DEBUG` is either `0` or `1` depending on whether debugging output is
+ enabled.
+
Consult this table for which script receives which environment variables:
| Variable | `configure` | `sync` | `prepare` | `build` | `postinst` | `finalize` | `postoutput` | `clean` |
| `CHROOT_OUTPUTDIR` | | | | | ✓ | ✓ | | |
| `CHROOT_SCRIPT` | | | ✓ | ✓ | ✓ | ✓ | | |
| `CHROOT_SRCDIR` | | | ✓ | ✓ | ✓ | ✓ | | |
+| `DEBUG` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| `DESTDIR` | | | | ✓ | | | | |
| `DISTRIBUTION` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| `DISTRIBUTION_ARCHITECTURE` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |