From: Uladzimir Bely <ubely@ilbers.de>
To: Vidyasagar G C <gcvidyasagar@gmail.com>, isar-users@googlegroups.com
Subject: Re: [PATCH] Fix rootfs source list handling in image.bbclass
Date: Fri, 06 Dec 2024 10:28:33 +0300 [thread overview]
Message-ID: <cf2f482568ac61e43c47783c64d3371eca7fe953.camel@ilbers.de> (raw)
In-Reply-To: <20241127174426.4098-1-vidyasagar.gc@siemens.com>
On Wed, 2024-11-27 at 23:14 +0530, Vidyasagar G C wrote:
> Ensure that the APT sources list is only moved if both the sources-
> list
> file and the sources.list.d directory exist. This prevents errors
> when
> APT is not installed, as the sources.list.d directory will be
> missing.
>
> Signed-off-by: Vidyasagar G C <vidyasagar.gc@siemens.com>
> ---
> meta/classes/image.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
> index 472df3cf..31be4267 100644
> --- a/meta/classes/image.bbclass
> +++ b/meta/classes/image.bbclass
> @@ -418,7 +418,7 @@ do_rootfs_finalize() {
> -maxdepth 1 -name 'qemu-*-static' -type f -delete
> fi
>
> - if [ -e "${ROOTFSDIR}/etc/apt/sources-list" ]; then
> + if [ -e "${ROOTFSDIR}/etc/apt/sources-list" ] && [ -e
> "${ROOTFSDIR}/etc/apt/sources-list.d" ]; then
> mv "${ROOTFSDIR}/etc/apt/sources-list" \
> "${ROOTFSDIR}/etc/apt/sources.list.d/bootstrap.list"
> fi
> --
> 2.39.2
>
Applied to next, thanks.
--
Best regards,
Uladzimir.
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/cf2f482568ac61e43c47783c64d3371eca7fe953.camel%40ilbers.de.
prev parent reply other threads:[~2024-12-06 7:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-27 17:44 Vidyasagar G C
2024-12-06 7:28 ` Uladzimir Bely [this message]
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=cf2f482568ac61e43c47783c64d3371eca7fe953.camel@ilbers.de \
--to=ubely@ilbers.de \
--cc=gcvidyasagar@gmail.com \
--cc=isar-users@googlegroups.com \
/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