[osinfo-db PATCH 05/15] install-script, ubuntu: Improve target-disk template

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

 



Let's use virtio as target-disk in case a target-disk is not set by the
apps. We can safely do this as we support unattended installation for
Ubuntu since its 12.04 release and virtio support has been added on 9.04.

Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
---
 data/install-script/ubuntu.com/ubuntu-preseed-desktop.xml.in | 4 ++--
 data/install-script/ubuntu.com/ubuntu-preseed-jeos.xml.in    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/data/install-script/ubuntu.com/ubuntu-preseed-desktop.xml.in b/data/install-script/ubuntu.com/ubuntu-preseed-desktop.xml.in
index b864f2d..9fd8bcf 100644
--- a/data/install-script/ubuntu.com/ubuntu-preseed-desktop.xml.in
+++ b/data/install-script/ubuntu.com/ubuntu-preseed-desktop.xml.in
@@ -45,8 +45,8 @@
                     <xsl:value-of select="config/target-disk"/>
                   </xsl:when>
                   <xsl:otherwise>
-                    <!-- IDE -->
-                    <xsl:text>/dev/hda</xsl:text>
+                    <!-- virtio -->
+                    <xsl:text>/dev/vda</xsl:text>
                   </xsl:otherwise>
                 </xsl:choose>
               </xsl:template>
diff --git a/data/install-script/ubuntu.com/ubuntu-preseed-jeos.xml.in b/data/install-script/ubuntu.com/ubuntu-preseed-jeos.xml.in
index 1a9ed95..af9eb4c 100644
--- a/data/install-script/ubuntu.com/ubuntu-preseed-jeos.xml.in
+++ b/data/install-script/ubuntu.com/ubuntu-preseed-jeos.xml.in
@@ -38,8 +38,8 @@
               <xsl:value-of select="config/target-disk"/>
             </xsl:when>
             <xsl:otherwise>
-              <!-- IDE -->
-              <xsl:text>/dev/hda</xsl:text>
+              <!-- virtio -->
+              <xsl:text>/dev/vda</xsl:text>
             </xsl:otherwise>
           </xsl:choose>
         </xsl:template>
-- 
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