Pino Toscano
2018-Nov-30 11:47 UTC
[Libguestfs] [PATCH] inspect: handle os-release "opensuse-tumbleweed" as opensuse
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 -- 2.17.2
Richard W.M. Jones
2018-Nov-30 12:25 UTC
Re: [Libguestfs] [PATCH] inspect: handle os-release "opensuse-tumbleweed" as opensuse
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
Reasonably Related Threads
- [PATCH] inspection: Parse os-release "opensuse-leap" as opensuse
- [PATCH] inspection: Parse os-release "opensuse-leap" as opensuse (RHBZ#1634248).
- [PATCH] daemon: inspection: Add support for NeoKylin (RHBZ#1476081).
- [PATCH] inspect: recognize the Kali Linux distribution (RHBZ#1544227)
- [PATCH 0/5] Small inspection improvements