diff options
author | migleeson <47611259+migleeson@users.noreply.github.com> | 2024-07-17 09:45:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-17 09:45:26 +0200 |
commit | cb2d6214caa25b8297bde01bb8bb925957b04ba7 (patch) | |
tree | 4910a18fa21c0f50f1a78e721b4aeca7959173e5 /docs | |
parent | rules: Add uaccess tag to /dev/udmabuf (diff) | |
download | systemd-cb2d6214caa25b8297bde01bb8bb925957b04ba7.tar.xz systemd-cb2d6214caa25b8297bde01bb8bb925957b04ba7.zip |
docs: update mkosi version mentioned in HACKING.md (#33723)
* fix: update docs since the default config uses a setting only available in v23
* fix: update docs to only refer to installing from the mkosi repo
Diffstat (limited to 'docs')
-rw-r--r-- | docs/HACKING.md | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/HACKING.md b/docs/HACKING.md index a656f2ddb0..670cbb9dea 100644 --- a/docs/HACKING.md +++ b/docs/HACKING.md @@ -29,8 +29,7 @@ For some components (most importantly, systemd/PID 1 itself) this is not possibl In order to simplify testing for cases like this we provide a set of `mkosi` config files directly in the source tree. [mkosi](https://mkosi.systemd.io/) is a tool for building clean OS images from an upstream distribution in combination with a fresh build of the project in the local working directory. -To make use of this, please install `mkosi` v19 or newer using your distribution's package manager or from the -[GitHub repository](https://github.com/systemd/mkosi). +To make use of this, please install `mkosi` from the [GitHub repository](https://github.com/systemd/mkosi#running-mkosi-from-the-repository). `mkosi` will build an image for the host distro by default. First, run `mkosi genkey` to generate a key and certificate to be used for secure boot and verity signing. After that is done, it is sufficient to type `mkosi` in the systemd project directory to generate a disk image you can boot either in `systemd-nspawn` or in a UEFI-capable VM: @@ -76,8 +75,8 @@ pid1 or `systemctl soft-reboot` to restart everything. Putting this all together, here's a series of commands for preparing a patch for systemd: ```sh -$ git clone https://github.com/systemd/mkosi.git # If mkosi v19 or newer is not packaged by your distribution -$ ln -s $PWD/mkosi/bin/mkosi /usr/local/bin/mkosi # If mkosi v19 or newer is not packaged by your distribution +$ git clone https://github.com/systemd/mkosi.git +$ ln -s $PWD/mkosi/bin/mkosi /usr/local/bin/mkosi $ git clone https://github.com/systemd/systemd.git $ cd systemd $ git checkout -b <BRANCH> # where BRANCH is the name of the branch |