[Libosinfo] [osinfo-db PATCH 12/15] install-script, centos: Only use virtio for 5.6+

Fabiano Fidêncio fidencio at redhat.com
Thu Jun 13 11:48:31 UTC 2019


Although we only support unattended installations for CentOS 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 CentOS 5.6 (and not 5.0).

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

diff --git a/data/install-script/centos.org/centos-kickstart-desktop.xml.in b/data/install-script/centos.org/centos-kickstart-desktop.xml.in
index db4a785..d3179c4 100644
--- a/data/install-script/centos.org/centos-kickstart-desktop.xml.in
+++ b/data/install-script/centos.org/centos-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/centos.org/centos-kickstart-jeos.xml.in b/data/install-script/centos.org/centos-kickstart-jeos.xml.in
index d872800..9462555 100644
--- a/data/install-script/centos.org/centos-kickstart-jeos.xml.in
+++ b/data/install-script/centos.org/centos-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