summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-11-05 22:21:17 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-14 23:56:48 -0500
commit39988d1118fca6a9cdd952cfbbcbb07639dffa4b (patch)
treed33073ebfa8e2490317b68d2dc82d7a8aecba9eb
parentb1d7520ab5c94f648c51991aaa603bbccc2610f5 (diff)
HACKING: mkosi is now packaged for Fedora
Also dnf requires sudo.
-rw-r--r--HACKING4
1 files changed, 3 insertions, 1 deletions
diff --git a/HACKING b/HACKING
index 3ee1c7e340..0d1a93e211 100644
--- a/HACKING
+++ b/HACKING
@@ -51,12 +51,14 @@ systemd's build dependencies:
Putting this all together, here's a series of commands for preparing a patch
for systemd (this example is for Fedora):
+ $ sudo dnf builddep systemd # install build dependencies
+ $ sudo dnf install mkosi # install tool to quickly build images
$ git clone https://github.com/systemd/systemd.git
$ cd systemd
$ vim src/core/main.c # or wherever you'd like to make your changes
- $ dnf builddep systemd # install build dependencies
$ ./autogen.sh c # configure the source tree
$ make -j `nproc` # build it locally, see if everything compiles fine
+ $ make -j `nproc` check # run some simple regression tests
$ sudo mkosi # build a test image
$ sudo systemd-nspawn -bi image.raw # boot up the test image
$ git add -p # interactively put together your patch