Skip to content

Commit 15f641b

Browse files
committed
Add instructions on building systemd from source
1 parent bc55f2c commit 15f641b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,33 @@ To update the system after installation, you clone the ParticleOS repository
2222
or your fork of it and run `mkosi -ff sysupdate update --reboot` which will
2323
update the system using `systemd-sysupdate` and then reboot.
2424

25+
## Building systemd from source
26+
27+
Sometimes ParticleOS adopts systemd features as soon as they get merged into
28+
systemd without waiting for an official release. As a result it's recommended to
29+
build systemd from source when building ParticleOS to make sure all required
30+
features are supported:
31+
32+
```sh
33+
git clone https://github.com/systemd/systemd
34+
cd systemd
35+
mkosi -t none
36+
```
37+
38+
Then write the following to `mkosi.local.conf` in the ParticleOS repository to
39+
use the artifacts from the systemd repository built by mkosi in ParticleOS:
40+
41+
```conf
42+
[Content]
43+
PackageDirectories=../systemd/build/mkosi.builddir/%d~%r~%a
44+
45+
[Host]
46+
ExtraSearchPaths=../systemd/build/mkosi.builddir/%d~%r~%a
47+
```
48+
49+
To build a newer systemd, run `git pull` in the systemd repository followed by
50+
`mkosi -t none`.
51+
2552
## Installation
2653

2754
Before installing ParticleOS, make sure that Secure Boot is in setup mode on the

0 commit comments

Comments
 (0)