[Libosinfo] [osinfo-db PATCH 06/16] install-script, ubuntu: Improve target-disk template

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


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 at redhat.com>
---
 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




More information about the Libosinfo mailing list