From: Henning Schild <henning.schild@siemens.com>
To: "Maxim Yu. Osipov" <mosipov@ilbers.de>
Cc: <isar-users@googlegroups.com>
Subject: Re: [PATCH 2/2] classes/isar-image: Replace the apt sources file with the original
Date: Mon, 17 Dec 2018 12:42:29 +0100 [thread overview]
Message-ID: <20181217124229.5d85144d@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <20181217054034.12236-2-mosipov@ilbers.de>
Am Mon, 17 Dec 2018 06:40:34 +0100
schrieb "Maxim Yu. Osipov" <mosipov@ilbers.de>:
> At the final stage of image generation replace the local apt sources
> file used for bootstrapping with the original APT sources list
> defined via DISTRO_APT_SOURCES variable.
>
> Signed-off-by: Maxim Yu. Osipov <mosipov@ilbers.de>
> ---
> meta/classes/isar-image.bbclass | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/meta/classes/isar-image.bbclass
> b/meta/classes/isar-image.bbclass index 81738ff..4193d97 100644
> --- a/meta/classes/isar-image.bbclass
> +++ b/meta/classes/isar-image.bbclass
> @@ -66,6 +66,11 @@ isar_image_cleanup() {
> if [ "${ISAR_USE_CACHED_BASE_REPO}" = "1" ]; then
> sudo umount -l ${IMAGE_ROOTFS}/base-apt
> sudo rmdir ${IMAGE_ROOTFS}/base-apt
> + # Replace the local apt we bootstrapped with the
> + # APT sources initially defined in DISTRO_APT_SOURCES
> + sudo rm -f
> "${IMAGE_ROOTFS}/etc/apt/sources.list.d/base-apt.list"
> + sudo mv "${IMAGE_ROOTFS}/etc/apt/sources-list" \
> +
> "${IMAGE_ROOTFS}/etc/apt/sources.list.d/bootstrap.list" fi
> }
And here we keep sources-list in the !cached case forever ...
Henning
>
next prev parent reply other threads:[~2018-12-17 11:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-17 5:40 [PATCH 1/2] isar-bootstrap: Keep the initial APT sources list Maxim Yu. Osipov
2018-12-17 5:40 ` [PATCH 2/2] classes/isar-image: Replace the apt sources file with the original Maxim Yu. Osipov
2018-12-17 11:42 ` Henning Schild [this message]
2018-12-17 11:41 ` [PATCH 1/2] isar-bootstrap: Keep the initial APT sources list Henning Schild
2018-12-17 13:15 ` Maxim Yu. Osipov
2018-12-19 11:45 ` Maxim Yu. Osipov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181217124229.5d85144d@md1za8fc.ad001.siemens.net \
--to=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=mosipov@ilbers.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox