mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-18 06:03:42 +03:00
test: mark knot.conf tmpfiles config as optional
Since it got removed in the recent knot release.
See: a6971a4025
This commit is contained in:
parent
b8c0f58c19
commit
e4050ff41e
@ -24,8 +24,8 @@ test_append_files() {
|
|||||||
local workspace="${1:?}"
|
local workspace="${1:?}"
|
||||||
# Install knot
|
# Install knot
|
||||||
image_install kzonecheck keymgr kjournalprint knotc knotd
|
image_install kzonecheck keymgr kjournalprint knotc knotd
|
||||||
image_install /lib/tmpfiles.d/knot.conf
|
|
||||||
image_install "${ROOTLIBDIR:?}/system/knot.service"
|
image_install "${ROOTLIBDIR:?}/system/knot.service"
|
||||||
|
image_install -o /lib/tmpfiles.d/knot.conf
|
||||||
image_install -o /etc/dbus-1/system.d/cz.nic.knotd.conf
|
image_install -o /etc/dbus-1/system.d/cz.nic.knotd.conf
|
||||||
image_install -o /etc/default/knot
|
image_install -o /etc/default/knot
|
||||||
|
|
||||||
|
@ -64,6 +64,12 @@ ln -svf /etc/bind.keys /etc/bind/bind.keys
|
|||||||
# Start the services
|
# Start the services
|
||||||
systemctl unmask systemd-networkd systemd-resolved
|
systemctl unmask systemd-networkd systemd-resolved
|
||||||
systemctl start systemd-networkd systemd-resolved
|
systemctl start systemd-networkd systemd-resolved
|
||||||
|
# Create knot's runtime dir, since from certain version it's provided only by
|
||||||
|
# the package and not created by tmpfiles/systemd
|
||||||
|
if [[ ! -d /run/knot ]]; then
|
||||||
|
mkdir -p /run/knot
|
||||||
|
chown -R knot:knot /run/knot
|
||||||
|
fi
|
||||||
systemctl start knot
|
systemctl start knot
|
||||||
# Wait a bit for the keys to propagate
|
# Wait a bit for the keys to propagate
|
||||||
sleep 4
|
sleep 4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user