return
env = dict(
+ ARCHITECTURE=str(state.config.architecture),
BUILDROOT=str(state.root),
CHROOT_SCRIPT="/work/prepare",
CHROOT_SRCDIR="/work/src",
return
env = dict(
+ ARCHITECTURE=str(state.config.architecture),
BUILDROOT=str(state.root),
CHROOT_DESTDIR="/work/dest",
CHROOT_OUTPUTDIR="/work/out",
return
env = dict(
+ ARCHITECTURE=str(state.config.architecture),
BUILDROOT=str(state.root),
CHROOT_OUTPUTDIR="/work/out",
CHROOT_SCRIPT="/work/postinst",
return
env = dict(
+ ARCHITECTURE=str(state.config.architecture),
BUILDROOT=str(state.root),
CHROOT_OUTPUTDIR="/work/out",
CHROOT_SCRIPT="/work/finalize",
Scripts executed by mkosi receive the following environment variables:
+* `$ARCHITECTURE` contains the architecture from the `Architecture=`
+ setting. If `Architecture=` is not set, it will contain the native
+ architecture of the host machine. See the documentation of
+ `Architecture=` for possible values for this variable.
+
* `$CHROOT_SCRIPT` contains the path to the running script relative to
the image root directory. The primary usecase for this variable is in
combination with the `mkosi-chroot` script. See the description of