]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Recommend symlinking to ~/.local/bin
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 19 Dec 2024 09:33:00 +0000 (10:33 +0100)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Thu, 19 Dec 2024 11:47:51 +0000 (12:47 +0100)
When using mkosi sandbox with a tools tree, /usr is replaced which
means the symlink is gone which prevents running mkosi from within
mkosi so let's recommend ~/.local/bin instead.

README.md

index 1990dfdf35cab54ea9c365a5200bdf63065ff4f6..3ff31bf3d9182e6c391b7cb17f922bd1256b79d2 100644 (file)
--- a/README.md
+++ b/README.md
@@ -26,12 +26,13 @@ listed below instead.
 To run mkosi straight from its git repository, you can invoke the shim
 `bin/mkosi`. The `MKOSI_INTERPRETER` environment variable can be set
 when using the `bin/mkosi` shim to configure the python interpreter used
-to execute mkosi. The shim can be symlinked to e.g. `/usr/local/bin` to
-make it accessible from the `PATH`.
+to execute mkosi. The shim can be symlinked to e.g. `~/.local/bin` to
+make it accessible from the `PATH`. Note that to make this work you
+might have to add `~/.local/bin` to your user's `PATH`.
 
 ```shell
 git clone https://github.com/systemd/mkosi
-ln -s $PWD/mkosi/bin/mkosi /usr/local/bin/mkosi
+ln -s $PWD/mkosi/bin/mkosi ~/.local/bin/mkosi
 mkosi --version
 ```