mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
qemuxml2argvtest: Don't use privileged mode upfront
When building packages in a clean chroot the QEMU_USER and QEMU_GROUP don't exist making VirQemuDriverConfigNew fail with privileged=true. Avoid that by not requiring privileged mode upfront but setting it later so we skip the user/group existence check. This solution was suggested by Daniel P. Berrange and tested by Martin Kletzander.
This commit is contained in:
parent
064f49a050
commit
3cee4c05b7
@ -499,9 +499,11 @@ mymain(void)
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
driver.config = virQEMUDriverConfigNew(true);
|
||||
driver.config = virQEMUDriverConfigNew(false);
|
||||
if (driver.config == NULL)
|
||||
return EXIT_FAILURE;
|
||||
else
|
||||
driver.config->privileged = true;
|
||||
|
||||
VIR_FREE(driver.config->spiceListen);
|
||||
VIR_FREE(driver.config->vncListen);
|
||||
|
Loading…
x
Reference in New Issue
Block a user