mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-03 07:33:50 +00:00
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: 4c69d64efa3731d074d198f871fd42e74c4a39f6 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…
x
Reference in New Issue
Block a user