]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: Don't require /etc/os-release to be present
authorAndrea Bolognani <abologna@redhat.com>
Wed, 26 Jan 2022 14:01:40 +0000 (15:01 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 27 Jan 2022 10:48:27 +0000 (11:48 +0100)
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>
meson.build

index 0f0a71a2da5cf60761f4b169265a16b9d84e0f52..ab5f7433a6f85053f35b16f4348c02c4fadcbd6a 100644 (file)
@@ -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'