By setting `SYSEXT_SCOPE` and `CONFEXT_SCOPE` environment variables the
values to write to the extension-release file can be configured.
f.write(f"{prefix}_VERSION_ID={context.config.image_version}\n")
if f"{prefix}_SCOPE" not in extrelease:
- f.write(f"{prefix}_SCOPE=initrd system portable\n")
+ f.write(f"{prefix}_SCOPE={context.config.environment.get(f'{prefix}_SCOPE', 'initrd system portable')}\n")
if "ARCHITECTURE" not in extrelease:
f.write(f"ARCHITECTURE={context.config.architecture}\n")
if the mirror is set to `https://mirror.net/centos-stream` mkosi will
look for the epel repositories in `https://mirror.net/fedora/epel`.
+* `SYSEXT_SCOPE` and `CONFEXT_SCOPE` can be used to override the default
+ value of the respecive `extension-release` file when building a sysext
+ or confext. By default the value is set to `initrd system portable`.
+
# EXAMPLES
Create and run a raw *GPT* image with *ext4*, as `image.raw`: