[Libguestfs] [PATCH] inspect: handle os-release "opensuse-tumbleweed" as opensuse

Richard W.M. Jones rjones at redhat.com
Fri Nov 30 12:25:01 UTC 2018


On Fri, Nov 30, 2018 at 12:47:31PM +0100, Pino Toscano wrote:
> Followup of commit 70407cd622dda6f088a0876e1e1ae669e9f8a281 for openSUSE
> Thumbleweed.
> ---
>  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 4dd89fa8f..925db06a3 100644
> --- a/daemon/inspect_fs_unix.ml
> +++ b/daemon/inspect_fs_unix.ml
> @@ -143,7 +143,7 @@ and distro_of_os_release_id = function
>    | "kali" -> Some DISTRO_KALI_LINUX
>    | "mageia" -> Some DISTRO_MAGEIA
>    | "neokylin" -> Some DISTRO_NEOKYLIN
> -  | "opensuse" | "opensuse-leap" -> Some DISTRO_OPENSUSE
> +  | "opensuse" | "opensuse-leap" | "opensuse-tumbleweed" -> Some DISTRO_OPENSUSE
>    | "pld" -> Some DISTRO_PLD_LINUX
>    | "rhel" -> Some DISTRO_RHEL
>    | "sles" | "sled" -> Some DISTRO_SLES
> -- 

Or even:

  | "opensuse"
  | s when String.is_prefix s "opensuse-" -> Some DISTRO_OPENSUSE

Either way, ACK patch.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v




More information about the Libguestfs mailing list