[Libosinfo] [osinfo-db PATCH 10/16] install-script, rhel: Only use virtio for 5.6+

Fabiano Fidêncio fidencio at redhat.com
Tue Jun 18 19:06:26 UTC 2019


Although we only support unattended installations for Red Hat Enterprise
Linux 6 (or newer), let's fix the condition for using virtio as the
target disk.

Unlike suggested in the previous condition, virtio-block has only been
added to Red Hat Enterprise Linux 5.6 (and not 5.0).

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 data/install-script/redhat.com/rhel-kickstart-desktop.xml.in | 2 +-
 data/install-script/redhat.com/rhel-kickstart-jeos.xml.in    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in b/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in
index 286c92c..aec7cf7 100644
--- a/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in
+++ b/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in
@@ -36,7 +36,7 @@
             <xsl:when test="config/target-disk != ''">
               <xsl:value-of select="config/target-disk"/>
             </xsl:when>
-            <xsl:when test="os/version > 4">
+            <xsl:when test="os/version > 5.5">
               <!-- virtio -->
               <xsl:text>/dev/vda</xsl:text>
             </xsl:when>
diff --git a/data/install-script/redhat.com/rhel-kickstart-jeos.xml.in b/data/install-script/redhat.com/rhel-kickstart-jeos.xml.in
index 6e60d03..c15e926 100644
--- a/data/install-script/redhat.com/rhel-kickstart-jeos.xml.in
+++ b/data/install-script/redhat.com/rhel-kickstart-jeos.xml.in
@@ -28,7 +28,7 @@
             <xsl:when test="config/target-disk != ''">
               <xsl:value-of select="config/target-disk"/>
             </xsl:when>
-            <xsl:when test="os/version > 4">
+            <xsl:when test="os/version > 5.5">
               <!-- virtio -->
               <xsl:text>/dev/vda</xsl:text>
             </xsl:when>
-- 
2.21.0




More information about the Libosinfo mailing list