mirror of https://gitee.com/openkylin/libvirt.git
meson: Don't require /etc/os-release to be present
It might be part of some non-mandatory package on certain
distros, and our logic deals just fine with its contents not
being available.
Fixes: 4c69d64efa
Reported-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
f103976ff3
commit
e963390342
|
@ -1659,7 +1659,7 @@ if not get_option('driver_qemu').disabled()
|
|||
default_qemu_user = 'root'
|
||||
default_qemu_group = 'wheel'
|
||||
else
|
||||
os_release = run_command('grep', '^ID=', '/etc/os-release', check: true).stdout()
|
||||
os_release = run_command('grep', '^ID=', '/etc/os-release', check: false).stdout()
|
||||
if os_release.contains('arch')
|
||||
default_qemu_user = 'nobody'
|
||||
default_qemu_group = 'nobody'
|
||||
|
|
Loading…
Reference in New Issue