From: Zbigniew Jędrzejewski-Szmek Date: Mon, 9 Dec 2024 19:24:34 +0000 (+0100) Subject: docs/HACKING: use 'run0' to indicate which commands require privileges X-Git-Tag: v258-rc1~1575^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6ed73883c68304f6677ff342f457aad3c18ab6c6;p=thirdparty%2Fsystemd.git docs/HACKING: use 'run0' to indicate which commands require privileges --- diff --git a/docs/HACKING.md b/docs/HACKING.md index e4359e277ac..d302a15f280 100644 --- a/docs/HACKING.md +++ b/docs/HACKING.md @@ -50,7 +50,7 @@ To build and boot an OS image with the latest systemd installed: ```sh $ mkosi -f genkey # Generate signing keys once. $ mkosi -f sandbox meson compile -C build mkosi # (re-)build the OS image -$ sudo mkosi boot # Boot the image with systemd-nspawn. +$ run0 mkosi boot # Boot the image with systemd-nspawn. $ mkosi vm # Boot the image with qemu. ``` @@ -133,17 +133,17 @@ To upgrade the systemd packages on the host system to the newer versions built by mkosi, run the following: ```sh -dnf upgrade build/mkosi.builddir/~~/*.rpm # Fedora/CentOS -apt-get install build/mkosi.builddir/~~/*.deb # Debian/Ubuntu -pacman --upgrade --needed --noconfirm build/mkosi.builddir/~~/*.pkg.tar # Arch Linux -zypper --non-interactive install --allow-unsigned-rpm build/mkosi.builddir/~~/*.rpm # OpenSUSE +run0 dnf upgrade build/mkosi.builddir/~~/*.rpm # Fedora/CentOS +run0 apt-get install build/mkosi.builddir/~~/*.deb # Debian/Ubuntu +run0 pacman --upgrade --needed --noconfirm build/mkosi.builddir/~~/*.pkg.tar # Arch Linux +run0 zypper --non-interactive install --allow-unsigned-rpm build/mkosi.builddir/~~/*.rpm # OpenSUSE ``` To downgrade back to the old version shipped by the distribution, run the following: ```sh -dnf downgrade "systemd*" # Fedora/CentOS +run0 dnf downgrade "systemd*" # Fedora/CentOS # TODO: Other distributions ```