I was somehow able to install my gpg key into the "debian-archive-keyring" package (with sight modifications) but the verification does not succeeds
Currently, I don't know, why. Robert sent from my mobile device -------- Originale Nachricht -------- Von: Robert Paschedag <robert.pasche...@web.de> Gesendet: Sun Oct 06 17:10:00 GMT+02:00 2019 An: john doe <johndoe65...@mail.com> Cc: debian-boot@lists.debian.org Betreff: Re: how to setup a small local Debian mirror to install a VM without an internet access I also tried to include my custom gpg key into the initrd.... That did not work. The gpg key was there, but it was missing within the chroot within /target Looks to me as if the keys get installed via the "debian-archive-keyring" package. Therefore, the package would have to be modified. Robert sent from my mobile device -------- Originale Nachricht -------- Von: john doe <johndoe65...@mail.com> Gesendet: Sat Oct 05 10:47:44 GMT+02:00 2019 An: debian-boot@lists.debian.org Betreff: Re: how to setup a small local Debian mirror to install a VM without an internet access On 10/5/2019 8:51 AM, David wrote: > On Thu, 3 Oct 2019 at 02:23, Fred Boiteux <fbp...@free.fr> wrote: > >> I'm trying to install automatically (using preseed) a Debian Buster 10.1 >> system on a VM hosted on a system without internet access, using a netboot. > >> Thanks to Steve McIntyre explanations (see #940801), I know how to >> update the netboot's initrd to include the virtio_blk driver, and the >> debian installer is now well detecting the VM's disk, and after >> partitionning it, it tries to download some Debian packages to install a >> minimal system on this new disk. For this purpose, i've setup a local >> Debian mirror copying the files on DVD-1 debian installer, but the >> debian-installer refuse to use it, because it's not GPG-signed, and so >> fails to install any package : > > Hi Fred, > > I am unsure from your message exactly how much network access you > may or may not have for your required VM install operations, so the > below suggestion might be useless for you, but I will send it anyway > on the chance it helps you. > Approxy/apt-cacher-ng could be installed as an vm and the preseed file would reference that mirror. > On my main PC (just a desktop with some TB HDD) on my LAN I run > an 'approx" server[1]. In every /etc/apt/sources.list (on that machine and > every other machine) there are only references to that server (nothing > outside the LAN, no deb.debian.org or security.debian.org), so every > Debian package that I install on any machine is then cached by the > approx server and after that can be served to any other machine. > > The approx server config file is the only place where deb.debian.org > and security.debian.org is written. It can work with other repos, for example > I configured mine to also cache raspberrypi.org. It does not download > the entire repo, it just caches what is used and downloads the misses. > apt-cacher-ng includes the ability to add from an iso file. If you need to use your own pkgs, the following URL might help you: https://wiki.debian.org/DebianEdu/HowTo/NetbootInstall That is, include your gpg key in initrd.gz. -- John Doe