[elbe-devel] [PATCH v2 4/6] debinstaller: implement download of vmlinuz and initrd.gz

Torben Hohn torben.hohn at linutronix.de
Mon Oct 15 13:18:01 CEST 2018


On Fri, Oct 12, 2018 at 05:19:34PM +0200, Manuel Traut wrote:
> On Wed, Sep 26, 2018 at 12:13:50PM +0200, Torben Hohn wrote:
> > the debinstaller module shall replace elbe-bootstrap.
> > it downloads debian installer linux kernel and initrd.gz from
> > a debian mirror. It does that in a secure manner, iE validating
> > Release.gpg and SHA256SUMS on the way.
> > 
> > filenames on the mirror:
> > /debian/dists/jessie/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux
> > /debian/dists/jessie/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
> > /debian/dists/jessie/main/installer-amd64/current/images/cdrom/initrd.gz
> > 
> > Although this functionality is also provided by apt,
> > we implement it here in pure python, because outside
> > of the initvm, we can not rely on apt being available.
> > 
> > The initrd and vmlinuz are stored in the initvm in /var/cache/elbe/installer.
> > Also put them on bin-cdrom.iso, and reuse them, when an elbe build
> > is run from cdrom.
> > 
> > With this code in Place, we can remove the fallback
> > Code in pkgutils. We also will never see initvm build
> > failures due to new debian Releases requiring new
> > installer/elbe-bootstrap versions.

[...]
> 
> >      try:
> > -        copy_kinitrd(xml.node("/initvm"), out_path, defs, arch="amd64")
> > +        copy_kinitrd(xml.node("/initvm"), out_path)
> 
> shouldn't we keep arch? I still dream about an arm64 initvm :/

it was hardcoded to arch="amd64", i have just removed a codepath,
that never gets called.

we can add that later, if we have a usecase.
for arm64 it looks like just replaceing amd64 with arm64 is ok.

see:
http://ftp.de.debian.org/debian/dists/jessie/main/installer-arm64/current/images/netboot/debian-installer/

but for armhf its already different...

http://ftp.de.debian.org/debian/dists/jessie/main/installer-armhf/current/images/netboot/

so without adding a map from arch to URLs this seems rather useless.
and that starts to go out of scope of this queue here.



-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20181015/034e4542/attachment-0001.sig>


More information about the elbe-devel mailing list