Hello,
I have build locally an updated apt-setup.udeb with the patch from #12 and it works for me.
Installation of the rebuild udeb is a bit hacky via early_command:
d-i preseed/early_command string wget -q -O /tmp/apt-setup.udeb http://<internal server>/apt-setup-udeb_0.104ubuntu5_amd64.udeb; udpkg -i /tmp/apt-setup.udeb
I have used a preseed file, which contains 2 local repositories:
# Ubuntu DESY Repository d-i apt-setup/local0/repository string \ deb http://<internal server>/extra/desy/ bionic desy d-i apt-setup/local0/source boolean false d-i apt-setup/local0/comment string desy d-i apt-setup/local0/key string http://<internal server>/extra/desy/DESY-Debian-key.asc
# Puppet PC1 d-i apt-setup/local1/repository string \ deb http://<internal server>/extra/puppet.apt.timeline/current/ bionic PC1 d-i apt-setup/local1/source boolean false d-i apt-setup/local1/comment string puppetlabs d-i apt-setup/local1/key string http://<internal server>/extra/puppet.apt.timeline/current/pubkey.gpg
The updated udeb downloads the keys and copies them to /target/etc/apt/trusted/gpg.d: ~ # ls -la /target/etc/apt/trusted.gpg.d/ drwxr-xr-x 2 root root 4096 Apr 11 20:32 . drwxr-xr-x 6 root root 4096 Apr 11 20:32 .. -rw-r--r-- 1 root root 971 Feb 25 2015 desy.asc -rw-r--r-- 1 root root 3139 Feb 22 23:34 puppetlabs.asc -rw-r--r-- 1 root root 2796 Feb 6 17:15 ubuntu-keyring-2012-archive.gpg -rw-r--r-- 1 root root 2794 Feb 6 17:15 ubuntu-keyring-2012-cdimage.gpg
Additionally, detection of non-binary format for the puppetlabs key worked as well, as it now contains the .asc extension.
Side remark, a similar bug entry exists for debian-installer on launchpad as well: https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1761030
Regards, Stefan
Hello,
I have build locally an updated apt-setup.udeb with the patch from #12 and it works for me.
Installation of the rebuild udeb is a bit hacky via early_command:
d-i preseed/ early_command string wget -q -O /tmp/apt-setup.udeb http://<internal server> /apt-setup- udeb_0. 104ubuntu5_ amd64.udeb; udpkg -i /tmp/apt-setup.udeb
I have used a preseed file, which contains 2 local repositories:
# Ubuntu DESY Repository local0/ repository string \ local0/ source boolean false local0/ comment string desy local0/ key string http://<internal server> /extra/ desy/DESY- Debian- key.asc
d-i apt-setup/
deb http://<internal server>/extra/desy/ bionic desy
d-i apt-setup/
d-i apt-setup/
d-i apt-setup/
# Puppet PC1 local1/ repository string \ /extra/ puppet. apt.timeline/ current/ bionic PC1 local1/ source boolean false local1/ comment string puppetlabs local1/ key string http://<internal server> /extra/ puppet. apt.timeline/ current/ pubkey. gpg
d-i apt-setup/
deb http://<internal server>
d-i apt-setup/
d-i apt-setup/
d-i apt-setup/
The updated udeb downloads the keys and copies them to /target/ etc/apt/ trusted/ gpg.d: etc/apt/ trusted. gpg.d/ keyring- 2012-archive. gpg keyring- 2012-cdimage. gpg
~ # ls -la /target/
drwxr-xr-x 2 root root 4096 Apr 11 20:32 .
drwxr-xr-x 6 root root 4096 Apr 11 20:32 ..
-rw-r--r-- 1 root root 971 Feb 25 2015 desy.asc
-rw-r--r-- 1 root root 3139 Feb 22 23:34 puppetlabs.asc
-rw-r--r-- 1 root root 2796 Feb 6 17:15 ubuntu-
-rw-r--r-- 1 root root 2794 Feb 6 17:15 ubuntu-
Additionally, detection of non-binary format for the puppetlabs key worked as well, as it now contains the .asc extension.
Side remark, a similar bug entry exists for debian-installer on launchpad as well: /bugs.launchpad .net/ubuntu/ +source/ debian- installer/ +bug/1761030
https:/
Regards,
Stefan