]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
docs: Simplify update commands in HACKING.md
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 10 Jul 2024 15:03:59 +0000 (17:03 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 10 Jul 2024 15:17:42 +0000 (17:17 +0200)
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).

docs/HACKING.md

index 5b1e355327757e928e38e33d64c8ff4e1f1070db..a656f2ddb0e63941c3e280e4d0832111c0f03c08 100644 (file)
@@ -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