mirror of
https://github.com/systemd/systemd
synced 2024-07-23 19:25:39 +00:00
docs: Add note on RuntimeBuildSources= to hacking guide
This commit is contained in:
parent
bbecef795b
commit
e71b40fd00
|
@ -82,6 +82,21 @@ to `mkosi.local.conf`:
|
||||||
QemuFirmware=uefi
|
QemuFirmware=uefi
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To avoid having to build a new image all the time when iterating on a patch, add
|
||||||
|
the following to `mkosi.local.conf`:
|
||||||
|
|
||||||
|
```conf
|
||||||
|
[Host]
|
||||||
|
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, run
|
||||||
|
`meson install -C /work/build --only-changed` in the container or virtual machine
|
||||||
|
and optionally restart the daemon(s) you're working on using
|
||||||
|
`systemctl restart <units>` or `systemctl daemon-reexec` if you're working on pid1.
|
||||||
|
|
||||||
Putting this all together, here's a series of commands for preparing a patch
|
Putting this all together, here's a series of commands for preparing a patch
|
||||||
for systemd:
|
for systemd:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue