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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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 &gt; 4">
+            <xsl:when test="os/version &gt; 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 &gt; 4">
+            <xsl:when test="os/version &gt; 5.5">
               <!-- virtio -->
               <xsl:text>/dev/vda</xsl:text>
             </xsl:when>
-- 
2.21.0

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux