mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-12 05:12:37 +00:00
qemu: fix snap build by disabling libudev
While building snap, static qemu is considered. Disable libudev
as it doesn't have static libraries on most of the distros of all
archs.
Backport-from: #3003
Fixes: #3002
Signed-off-by: Amulyam24 <amulmek1@in.ibm.com>
(cherry picked from commit 112ea25859
)
Signed-off-by: Greg Kurz <groug@kaod.org>
This commit is contained in:
parent
440657b36d
commit
ac5ab86ebd
@ -310,6 +310,11 @@ generate_qemu_options() {
|
||||
qemu_options+=(size:--disable-qom-cast-debug)
|
||||
qemu_options+=(size:--disable-tcmalloc)
|
||||
|
||||
# Disable libudev for static build
|
||||
if gt_eq "${qemu_version}" "5.2.0" ; then
|
||||
[ "${static}" == "true" ] && qemu_options+=(size:--disable-libudev)
|
||||
fi
|
||||
|
||||
# Disallow network downloads
|
||||
qemu_options+=(security:--disable-curl)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user