[libvirt PATCH 4/5] meson: Move definition of os_release

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

 



We're about to introduce another user of the value in a
different scope.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 meson.build | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 8da987b1cb..8848e58995 100644
--- a/meson.build
+++ b/meson.build
@@ -24,6 +24,11 @@ if git and not get_option('no_git')
 endif
 
 
+# detect operating system
+
+os_release = run_command('grep', '-E', '^ID(_LIKE)*=', '/etc/os-release', check: false).stdout()
+
+
 # prepare build configuration data
 
 conf = configuration_data()
@@ -1618,7 +1623,6 @@ if not get_option('driver_qemu').disabled()
         qemu_user = 'root'
         qemu_group = 'wheel'
       else
-        os_release = run_command('grep', '-E', '^ID(_LIKE)*=', '/etc/os-release', check: false).stdout()
         if os_release.contains('arch')
           qemu_user = 'nobody'
           qemu_group = 'nobody'
-- 
2.40.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