mirror of
https://github.com/systemd/systemd.git
synced 2025-03-11 20:58:27 +03:00
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). (cherry picked from commit 00acdb314768fac76b563857e2ab4a8e33b7be23)
This commit is contained in:
parent
5685a59371
commit
0c7d634157
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user