[PATCH v2] debian,installers: Enable ftp mirror

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

 



Currently, after completing the installation, the users are not able to
install any software in the VM as the only entry in
/etc/apt/sources.list is the installation media itself.

Also, desktop installation's profile is broken as qemu-guest-agent is
not part of the installation media and we have no mirror set up for
downloading the package from.

Let's fix these issues enabling the ftp mirror and removing the DVD from
the /etc/apt/sources.list.

Resolves:
https://bugzilla.redhat.com/show_bug.cgi?id=1336110
https://bugzilla.redhat.com/show_bug.cgi?id=1336111

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

diff --git a/data/install-script/debian.org/debian-preseed-desktop.xml.in b/data/install-script/debian.org/debian-preseed-desktop.xml.in
index b9e1da7..e4579dc 100644
--- a/data/install-script/debian.org/debian-preseed-desktop.xml.in
+++ b/data/install-script/debian.org/debian-preseed-desktop.xml.in
@@ -161,6 +161,7 @@ d-i partman/confirm boolean true
 
 
 ### Apt
+d-i apt-setup/use_mirror boolean true
 d-i apt-setup/security_host string
 d-i apt-setup/services-select multiselect
 d-i apt-setup/volatile_host string
@@ -201,6 +202,9 @@ d-i preseed/late_command string in-target passwd -d <xsl:value-of select="config
   </xsl:when>
 </xsl:choose>
 
+### Remove the installation DVD from the apt-get's sources.list
+d-i preseed/late_command string in-target sed -i '/cdrom/d' /etc/apt/sources.list
+
 </xsl:template>
       </xsl:stylesheet>
     </template>
diff --git a/data/install-script/debian.org/debian-preseed-jeos.xml.in b/data/install-script/debian.org/debian-preseed-jeos.xml.in
index 9b5f298..6d1c405 100644
--- a/data/install-script/debian.org/debian-preseed-jeos.xml.in
+++ b/data/install-script/debian.org/debian-preseed-jeos.xml.in
@@ -106,6 +106,7 @@ tasksel tasksel/first multiselect standard ssh-server
 d-i grub-installer/only_debian boolean false
 d-i grub-installer/bootdev string <xsl:call-template name="target-disk"/>
 
+d-i apt-setup/use_mirror boolean true
 d-i apt-setup/security_host string
 d-i apt-setup/services-select multiselect
 d-i apt-setup/volatile_host string
@@ -120,6 +121,9 @@ d-i preseed/late_command string in-target passwd -d root
   </xsl:when>
 </xsl:choose>
 
+### Remove the installation DVD from the apt-get's sources.list
+d-i preseed/late_command string in-target sed -i '/cdrom/d' /etc/apt/sources.list
+
 </xsl:template>
       </xsl:stylesheet>
     </template>
-- 
2.7.4

_______________________________________________
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