Backport systemd-resolved fixes for Fedora 36

This commit is contained in:
Malte Poll 2022-11-07 22:19:17 +01:00 committed by Malte Poll
parent 899ca91aa3
commit e07c6ada5c
3 changed files with 11 additions and 0 deletions

5
image/mkosi.prepare Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
set -euxo pipefail
# backport of https://github.com/dracutdevs/dracut/commit/dcbe23c14d13ca335ad327b7bb985071ca442f12
sed -i 's/WantedBy=multi-user.target/WantedBy=basic.target/' /usr/lib/systemd/system/systemd-resolved.service

View File

@ -70,4 +70,7 @@ install() {
install_path /etc/pki/tls/certs/
inst_simple /etc/pki/tls/certs/ca-bundle.crt \
/etc/pki/tls/certs/ca-bundle.crt
# backport of https://github.com/dracutdevs/dracut/commit/dcbe23c14d13ca335ad327b7bb985071ca442f12
inst_simple "$moddir/sysusers-dracut.conf" "$systemdsystemunitdir/systemd-sysusers.service.d/sysusers-dracut.conf"
}

View File

@ -0,0 +1,3 @@
# backport of https://github.com/dracutdevs/dracut/commit/dcbe23c14d13ca335ad327b7bb985071ca442f12
[Unit]
ConditionNeedsUpdate=