Message ID | 20250403125857.2525698-1-srinuvasan.a@siemens.com |
---|---|
State | Accepted, archived |
Headers | show |
Series | [1/2] meta/classes/rootfs: carry bootstrap list file until the image rootfs | expand |
On 2025-04-03 18:28, srinuvasan.a via isar-users wrote: > From: srinuvasan <srinuvasan.a@siemens.com> > > If the user selects a different debian mirror (http://ftp.de.debian.org) > by using DISTRO_APT_PREMIRRORS to pull the packages, the proper list > updated in the bootstrap rootfs and buildchroot rootfs, but in the imag rootfs > it contains the upstream list rather than the selected debian mirror. > > Due to this issue in the deb-src caching stage, we are copying the packages > state (/var/lib/apt/lists) from the bootstrap rootfs to the image rootfs, > With the present implementation, we are copying (http://ftp.de.debian.org) > list to image rootfs's var/lib/apt/lists but image rootfs /etc/apt/sources.list.d > contains the upstream (http://deb.debian.org) list. > > With this mismatch list, it throws the below error during the deb-src download stage > > Logs: > > Reading package lists... Done > E: You must put some 'deb-src' URIs in your sources.list > > Make sure the selected debian list available till the image rootfs, except > user can define their own list in SRC_URI. > > Signed-off-by: srinuvasan <srinuvasan.a@siemens.com> Applied to next, thanks. With kind regards, Baurzhan
diff --git a/meta/classes/rootfs.bbclass b/meta/classes/rootfs.bbclass index cd8fd118..406e9192 100644 --- a/meta/classes/rootfs.bbclass +++ b/meta/classes/rootfs.bbclass @@ -380,7 +380,6 @@ rootfs_cleanup_isar_apt() { sudo -s <<'EOSUDO' set -e rm -f "${ROOTFSDIR}/etc/apt/sources.list.d/isar-apt.list" - rm -f "${ROOTFSDIR}/etc/apt/sources.list.d/"*bootstrap.list rm -f "${ROOTFSDIR}/etc/apt/preferences.d/isar-apt" rm -f "${ROOTFSDIR}/etc/apt/apt.conf.d/50isar" EOSUDO