Merge pull request #6658 from gkurz/osbuilder-dracut-dbus

osbuilder: Enable dbus in the dracut case
This commit is contained in:
Greg Kurz 2023-04-13 19:03:15 +02:00 committed by GitHub
commit 897c0bc67e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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"

View File

@ -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
} }