Linutronix / elbe

Embedded Linux Build Environment
https://elbe-rfs.org
GNU General Public License v3.0
165 stars 59 forks source link

Specifying a keyring for debootstrap #365

Closed kempfsn closed 11 months ago

kempfsn commented 1 year ago

This is essentially the same issue as #104 reported by @mischelebuha. But let me explain the problem again.

When using a custom signed Debian repo as a primary mirror, running debootstrap fails unless signature checking of the repo is disabled.

However, we could run debootstrap with the --keyring option to specify a custom key. Somewhere around here, ELBE would have to construct the debootstrap command invocation accordingly: https://github.com/Linutronix/elbe/blob/v14.8/elbepack/rfs.py#L183

What would be the preferred way to implement this?

Currently the raw-keys are not evaluated for the debootstrap call. As I understood, they are also only used for the additional mirrors, not for the primary one. However, debootstrap can fetch packages only from a single mirror (the primary one).

bene42 commented 11 months ago

Dublicate. Tracked in https://github.com/Linutronix/elbe/issues/104