From: Zbigniew Jędrzejewski-Szmek Date: Sun, 29 Oct 2023 17:25:44 +0000 (+0100) Subject: man: drop suggestion to use mkosi-chroot for the whole script X-Git-Tag: v19~33^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f055d7d3ee516e33e52ae74b1d54264bc50a633f;p=thirdparty%2Fmkosi.git man: drop suggestion to use mkosi-chroot for the whole script --- diff --git a/mkosi/resources/mkosi.md b/mkosi/resources/mkosi.md index e55e1fe32..2834c745b 100644 --- a/mkosi/resources/mkosi.md +++ b/mkosi/resources/mkosi.md @@ -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