]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
man: drop suggestion to use mkosi-chroot for the whole script
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 29 Oct 2023 17:25:44 +0000 (18:25 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 30 Oct 2023 16:08:32 +0000 (17:08 +0100)
mkosi/resources/mkosi.md

index e55e1fe327db775aa872296c8906b28840dee312..2834c745b474a2f3bb8af7bd9dec77072b7c784c 100644 (file)
@@ -1622,15 +1622,15 @@ available via `$PATH` to simplify common usecases.
   After the mkosi-chroot command exits, various mount points are cleaned
   up.
 
-  To execute the entire script inside the image, put the following
-  snippet at the start of the script:
+  For example, to invoke `ls` inside of the image, use the following
 
   ```sh
-  if [ "$container" != "mkosi" ]; then
-      exec mkosi-chroot "$CHROOT_SCRIPT" "$@"
-  fi
+  mkosi-chroot ls ...
   ```
 
+  To execute the entire script inside the image, add a ".chroot" suffix
+  to the name (`mkosi.build.chroot` instead of `mkosi.build`, etc.).
+
 * For all of the supported package managers except portage (`dnf`,
   `apt`, `pacman`, `zypper`), scripts of the same name are put into
   `$PATH` that make sure these commands operate on the image's root