Hi Claudius, Andreas,
@Andreas
Your input is very welcome at this topic as you were busy with all this
APT keys stuff.
Could you please point to this hidden, implicit place where mentioned
bug persists?
I've looked under meta/recipes-core/isar-bootstrap/
It seems that keyring stuff is quite symmetrical (in terms of host/target):
isar/meta/recipes-core/isar-bootstrap$ grep -ri keyring *
isar-bootstrap-host.bb:do_generate_keyring[stamp-extra-info] =
"${DISTRO}-${DISTRO_ARCH}"
isar-bootstrap-host.bb:addtask bootstrap before do_build after
do_generate_keyring
isar-bootstrap.inc:APTKEYRING = "${WORKDIR}/apt-keyring.gpg"
isar-bootstrap.inc:DEBOOTSTRAP_KEYRING = ""
isar-bootstrap.inc: d.setVar("DEBOOTSTRAP_KEYRING", "--keyring
${APTKEYRING}")
isar-bootstrap.inc: d.setVar("DEBOOTSTRAP_KEYRING",
"--keyring ${APTKEYRING}")
isar-bootstrap.inc:do_generate_keyring[dirs] = "${DL_DIR}"
isar-bootstrap.inc:do_generate_keyring[vardeps] += "DISTRO_APT_KEYS"
isar-bootstrap.inc:do_generate_keyring() {
isar-bootstrap.inc: gpg --no-default-keyring --keyring
"${APTKEYRING}" \
isar-bootstrap.inc:addtask generate_keyring before do_build after do_unpack
isar-bootstrap.inc: ${DEBOOTSTRAP_KEYRING} \
isar-bootstrap.inc:
${DEBOOTSTRAP_KEYRING} \
isar-bootstrap-target.bb:do_generate_keyring[stamp-extra-info] =
"${DISTRO}-${DISTRO_ARCH}"
isar-bootstrap-target.bb:addtask bootstrap before do_build after
do_generate_keyring
isar/meta/recipes-core/isar-bootstrap$
And bootstrapping itself (function isar_bootsrap in isar-bootstrap.inc)
differs only by passing extra '--arch' to target DISTRO_ARCH. Nothing
regarding
if [ ${IS_HOST} ]; then
${DEBOOTSTRAP} $debootstrap_args \
${@get_distro_components_argument(d,
True)} \
${DEBOOTSTRAP_KEYRING} \
"${@get_distro_suite(d, True)}" \
"${ROOTFSDIR}" \
"${@get_distro_source(d, True)}"
else
"${DEBOOTSTRAP}" $debootstrap_args \
--arch="${DISTRO_ARCH}" \
${@get_distro_components_argument(d,
False)} \
${DEBOOTSTRAP_KEYRING} \
"${@get_distro_suite(d, False)}" \
"${ROOTFSDIR}" \
"${@get_distro_source(d, False)}"
fi
>
>> Some time ago I thought about introduction of HOST_DISTRO_APT_KEYS to
>> avoid confusion between target and host apt keys.
>
> Good idea. But that would be a new feature/improvement.
Yes. But your series is also improvement, isn't?
I need more arguments for introduction of this limitation.
Maxim.