initrd based on what type of kernel is passed by the user via
`-kernel` or `QemuKernel=`
- We don't create subdirectories beneath the configured cache directory
- anymore. To get back the previous behavior, configure the cache directory
- with subdirectories:
-
- ```conf
- CacheDirectory=mkosi.cache/%d~%r~%a
- ```
+ anymore.
## v18
return False
try:
- fd = os.open(self.device(), flags)
- os.close(fd)
+ os.close(os.open(self.device(), flags))
except OSError:
if log:
logging.warning(
* `mkosi-as-caller`: This script uses `setpriv` to switch from
the user `root` in the user namespace used for various build steps
back to the original user that called mkosi. This is useful when
- we want to invoke build steps which will write to $BUILDDIR and
+ we want to invoke build steps which will write to `$BUILDDIR` and
we want to have the files owned by the calling user.
For example, a complete `mkosi.build` script might be the following:
```sh
set -ex
- rm -rf "$BUILDDIR/build"
mkosi-as-caller meson setup "$BUILDDIR/build" "$SRCDIR"
mkosi-as-caller meson compile -C "$BUILDDIR/build"
meson install -C "$BUILDDIR/build" --no-rebuild