On Saturday, March 8, 2025 at 3:30:04 AM UTC+5:30 Jan Kiszka wrote:
On 07.03.25 13:25, srinuv...@siemens.com wrote:
> From: srinuvasan <srinuv...@siemens.com>
>
> Without this option, mmdebstrap deletes the var/log/dpkg.log and its siblings by default,
> but this is needed to download deb-src packages for base-apt creation.
> Basically, we are referring to the package's status under /var/log/dpkg.log file
> and performing the debsrc_download operation.
>
> Without these changes, bootstrap related deb-src files are not downloaded
> under the /downloads/deb-src folder, due to this the repo sanity check
> functions failed during base-apt caching stage.
>
> Signed-off-by: srinuvasan <srinuv...@siemens.com>
> ---
> meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
> index 931f6f13..7380a658 100644
> --- a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
> +++ b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
> @@ -168,6 +168,11 @@ do_bootstrap() {
> arch_param="$arch_param,${COMPAT_DISTRO_ARCH}"
> fi
>
> + cleanup=
> + if [ "${@bb.utils.contains('BASE_REPO_FEATURES', 'cache-deb-src', 'yes', 'no', d)}" = "yes" ]; then
> + cleanup="--skip=cleanup/reproducible"
> + fi
> +
> # Cleanup mounts if fails
> trap 'exit 1' INT HUP QUIT TERM ALRM USR1
> trap '[ -r "${WORKDIR}/mmtmpdir" ] && tmpdir=$(cat "${WORKDIR}/mmtmpdir") \
> @@ -183,6 +188,7 @@ do_bootstrap() {
>
> sudo TMPDIR="${BOOTSTRAP_TMPDIR}" mmdebstrap $bootstrap_args \
> $arch_param \
> + $cleanup \
> --mode=unshare \
> ${MMHOOKS} \
> --setup-hook='mkdir -p "$1/var/cache/apt/archives/"' \
What has changed in this version? I'm not seeing my concerns addressed,
my questions answered.
Hi jan,
I will come up with the more details for your query, this version address the failures reported by Uladzimir Bely.
Jan
--
Siemens AG, Foundational Technologies
Linux Expert Center