summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-07-10 17:03:59 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2024-07-10 17:17:42 +0200
commit00acdb314768fac76b563857e2ab4a8e33b7be23 (patch)
treeb5f7c930eabdf611b2d6d3786e45689a7d36b5c7 /docs
parentMerge pull request #33683 from DaanDeMeyer/sysext (diff)
downloadsystemd-00acdb314768fac76b563857e2ab4a8e33b7be23.tar.xz
systemd-00acdb314768fac76b563857e2ab4a8e33b7be23.zip
docs: Simplify update commands in HACKING.md
Let's make use of mkosi ssh to give everyone a one liner to run instead of having to execute two commands (one outside the VM, one inside).
Diffstat (limited to 'docs')
-rw-r--r--docs/HACKING.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/HACKING.md b/docs/HACKING.md
index 5b1e355327..a656f2ddb0 100644
--- a/docs/HACKING.md
+++ b/docs/HACKING.md
@@ -58,15 +58,15 @@ RuntimeBuildSources=yes
After enabling this setting, the source and build directories will be mounted to
`/work/src` and `/work/build` respectively when booting the image as a container
or virtual machine. To build the latest changes and re-install after booting the
-image, run `mkosi -t none` in another terminal on the host and run one of the
-following commands in the container or virtual machine depending on the
-distribution:
+image, run one of the following commands in another terminal on your host (
+choose the right one depending on the distribution of the container or virtual
+machine):
```sh
-dnf upgrade --disablerepo="*" /work/build/*.rpm # CentOS/Fedora
-apt install --reinstall /work/build/*.deb # Debian/Ubuntu
-pacman -U /work/build/*.pkg.tar # Arch Linux
-zypper install --allow-unsigned-rpm /work/build/*.rpm # OpenSUSE
+mkosi -t none && mkosi ssh dnf upgrade --disablerepo="*" "/work/build/*.rpm" # CentOS/Fedora
+mkosi -t none && mkosi ssh apt install --reinstall "/work/build/*.deb" # Debian/Ubuntu
+mkosi -t none && mkosi ssh pacman -U "/work/build/*.pkg.tar" # Arch Linux
+mkosi -t none && mkosi ssh zypper install --allow-unsigned-rpm "/work/build/*.rpm" # OpenSUSE
```
and optionally restart the daemon(s) you're working on using