[libvirt PATCH 1/5] meson: Don't require /etc/os-release to be present

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 0f0a71a2da..ab5f7433a6 100644
--- a/meson.build
+++ b/meson.build
@@ -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'
-- 
2.34.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux