[Libosinfo] [PATCH v2] debian,installers: Enable ftp mirror

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Tue May 17 13:35:40 UTC 2016


On Tue, May 17, 2016 at 10:35 AM, Fabiano Fidêncio <fidencio at redhat.com> wrote:
> 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 at redhat.com>
> ---

ACK, assuming you tested it.

>  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 at redhat.com
> https://www.redhat.com/mailman/listinfo/libosinfo



-- 
Regards,

Zeeshan Ali (Khattak)




More information about the Libosinfo mailing list