mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 11:44:38 +00:00
osbuilder: Enable dbus in the dracut case
The agent now offloads cgroup configuration to systemd when possible. This requires to enable D-Bus in order to communicate with systemd. Fixes #6657 Signed-off-by: Greg Kurz <groug@kaod.org>
This commit is contained in:
parent
f9a94f8fc5
commit
eb1762e813
@ -14,4 +14,4 @@ hostonly_cmdline="no"
|
|||||||
# create reproducible images
|
# create reproducible images
|
||||||
reproducible="yes"
|
reproducible="yes"
|
||||||
# dracut modules to include (NOTE: these are NOT kernel modules)
|
# dracut modules to include (NOTE: these are NOT kernel modules)
|
||||||
dracutmodules="kernel-modules udev-rules syslog systemd"
|
dracutmodules="kernel-modules udev-rules syslog systemd dbus"
|
||||||
|
@ -475,6 +475,8 @@ prepare_overlay()
|
|||||||
# Kata systemd unit file
|
# Kata systemd unit file
|
||||||
mkdir -p ./etc/systemd/system/basic.target.wants/
|
mkdir -p ./etc/systemd/system/basic.target.wants/
|
||||||
ln -sf /usr/lib/systemd/system/kata-containers.target ./etc/systemd/system/basic.target.wants/kata-containers.target
|
ln -sf /usr/lib/systemd/system/kata-containers.target ./etc/systemd/system/basic.target.wants/kata-containers.target
|
||||||
|
mkdir -p ./etc/systemd/system/kata-containers.target.wants/
|
||||||
|
ln -sf /usr/lib/systemd/system/dbus.socket ./etc/systemd/system/kata-containers.target.wants/dbus.socket
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user