[Libguestfs] [PATCH 3/5] inspect: fully detect Arch Linux from os-release

Pino Toscano ptoscano at redhat.com
Tue Apr 2 12:56:28 UTC 2019


Consider Arch Linux as rolling distribution, so it is recognized using
/etc/os-release.

The end result does not change, although this makes Arch Linux inspected
using os-release only, instead of getting inspection details mixed from
both os-release and lsb-release.
---
 daemon/inspect_fs_unix.ml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/daemon/inspect_fs_unix.ml b/daemon/inspect_fs_unix.ml
index 84283546b..6006df638 100644
--- a/daemon/inspect_fs_unix.ml
+++ b/daemon/inspect_fs_unix.ml
@@ -62,7 +62,7 @@ let arch_binaries =
  * features.
  *)
 let rolling_distros =
-  [ DISTRO_GENTOO; DISTRO_VOID_LINUX ]
+  [ DISTRO_ARCHLINUX; DISTRO_GENTOO; DISTRO_VOID_LINUX ]
 
 (* Parse a os-release file.
  *
-- 
2.20.1




More information about the Libguestfs mailing list