]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Various followups for merged PRs
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 2 Nov 2023 11:01:03 +0000 (12:01 +0100)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Thu, 2 Nov 2023 12:33:16 +0000 (13:33 +0100)
NEWS.md
mkosi/qemu.py
mkosi/resources/mkosi.md

diff --git a/NEWS.md b/NEWS.md
index 074c67ebcead67400aa28d36668a8891190862fa..83f2051211928a790ff33f30f8f4982ab1480091 100644 (file)
--- a/NEWS.md
+++ b/NEWS.md
   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
 
index efe4160e1d88b5f0cf329fcedeca8d9a2152f54d..3fb03490ecf42390bcd0cfde271325e5f5259927 100644 (file)
@@ -53,8 +53,7 @@ class QemuDeviceNode(StrEnum):
             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(
index 0cab7b9c728cb0f4475f8395d9fe4d12a976332c..b289971ae2079616d9a82274cbf6bcb249393e9a 100644 (file)
@@ -1641,7 +1641,7 @@ available via `$PATH` to simplify common usecases.
 * `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:
@@ -1649,7 +1649,6 @@ available via `$PATH` to simplify common usecases.
   ```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