current image. This file can be parsed inside scripts to gain access to all
settings for the current image.
+* `$IMAGE_ID` contains the identifier from the `ImageId=` or `--image-id=` setting.
+
+* `$IMAGE_VERSION` contains the version from the `ImageVersion=` or `--image-version=` setting
+
Consult this table for which script receives which environment variables:
| Variable | `configure` | `sync` | `prepare` | `build` | `postinst` | `finalize` | `postoutput` | `clean` |
| `MKOSI_UID` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| `MKOSI_GID` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| `MKOSI_CONFIG` | | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
+| `IMAGE_ID` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
+| `IMAGE_VERSION` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Additionally, when a script is executed, a few scripts are made
available via `$PATH` to simplify common usecases.