mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-08 21:17:47 +03:00
docs: Add section to HACKING.md on distribution packages
(cherry picked from commit 17ef81a764995dfd0f43daf34dcf2ab04806e760)
(cherry picked from commit 0a97db87893e706011f0ed7e522a42fcd3767ac4)
(cherry picked from commit 3ced17fb98
)
This commit is contained in:
parent
661fa2d832
commit
21184a6a82
@ -103,6 +103,50 @@ And after that, head over to your repo on GitHub and click "Compare & pull reque
|
||||
|
||||
Happy hacking!
|
||||
|
||||
## Building distribution packages with mkosi
|
||||
|
||||
To build distribution packages for a specific distribution and release without
|
||||
building an actual image, the following command can be used:
|
||||
|
||||
```sh
|
||||
mkosi -d <distribution> -r <release> -t none -f
|
||||
```
|
||||
|
||||
Afterwards the distribution packages will be located in `build/mkosi.output`. To
|
||||
also build debuginfo packages, the following command can be used:
|
||||
|
||||
```sh
|
||||
mkosi -d <distribution> -r <release> -E WITH_DEBUG=1 -t none -f
|
||||
```
|
||||
|
||||
To upgrade the systemd packages on the host system to the newer versions built
|
||||
by mkosi, run the following:
|
||||
|
||||
```sh
|
||||
dnf upgrade build/mkosi.output/*.rpm # Fedora/CentOS
|
||||
# TODO: Other distributions
|
||||
```
|
||||
|
||||
To downgrade back to the old version shipped by the distribution, run the
|
||||
following:
|
||||
|
||||
```sh
|
||||
dnf downgrade "systemd*" # Fedora/CentOS
|
||||
# TODO: Other distributions
|
||||
```
|
||||
|
||||
Additionally, for each pull request, the built distribution packages are
|
||||
attached as CI artifacts to the pull request CI jobs, which means that users can
|
||||
download and install them to test out if a pull request fixes the issue that
|
||||
they reported. To download the packages from a pull request, click on the
|
||||
`Checks` tab. Then click on the `mkosi` workflow in the list of workflows on the
|
||||
left of the `Checks` page. Finally, scroll down to find the list of CI
|
||||
artifacts. In this list of artifacts you can find artifacts containing
|
||||
distribution packages. To install these, download the artifact which is a zip
|
||||
archive, extract the zip archive to access the individual packages, and install
|
||||
them with your package manager in the same way as described above for packages
|
||||
that were built locally.
|
||||
|
||||
## Templating engines in .in files
|
||||
|
||||
Some source files are generated during build. We use two templating engines:
|
||||
|
Loading…
Reference in New Issue
Block a user