mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 19:54:35 +00:00
qemu: Disable libudev for QEMU 5.2 and newer
Commit 112ea25859
disabled libudev for static builds because it was
breaking snap. It turns out that the only users of libudev in QEMU are
qemu-pr-helper and USB. Kata already disables USB and doesn't use
qemu-pr-helper. Disable libudev for all builds if QEMU supports it, i.e.
version 5.2 or newer.
Fixes #3078
Signed-off-by: Greg Kurz <groug@kaod.org>
This commit is contained in:
parent
3865a1bcf6
commit
12c8e41c75
@ -310,9 +310,10 @@ generate_qemu_options() {
|
||||
qemu_options+=(size:--disable-qom-cast-debug)
|
||||
qemu_options+=(size:--disable-tcmalloc)
|
||||
|
||||
# Disable libudev for static build
|
||||
# Disable libudev since it is only needed for qemu-pr-helper and USB,
|
||||
# none of which are used with Kata
|
||||
if gt_eq "${qemu_version}" "5.2.0" ; then
|
||||
[ "${static}" == "true" ] && qemu_options+=(size:--disable-libudev)
|
||||
qemu_options+=(size:--disable-libudev)
|
||||
fi
|
||||
|
||||
# Disallow network downloads
|
||||
|
Loading…
Reference in New Issue
Block a user