public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] meta/classes/image: move sources-list as bootstrap.list in rootfs_finalize
@ 2024-12-13 13:45 srinuvasan.a via isar-users
  2024-12-20  7:47 ` Uladzimir Bely
  0 siblings, 1 reply; 2+ messages in thread
From: srinuvasan.a via isar-users @ 2024-12-13 13:45 UTC (permalink / raw)
  To: isar-users; +Cc: ubely, vidyasagar.gc, srinuvasan

From: srinuvasan <srinuvasan.a@siemens.com>

Presently, sources-list is not moved as bootstrap.list, even though the source-list file
and sources.list.d directory present, this regression introduced in 8c10710

Make sure to use -d if the directory exists and use the correct name of the directory (sources.list.d).

Signed-off-by: srinuvasan <srinuvasan.a@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 4ed9123f..db21cc76 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -416,7 +416,7 @@ do_rootfs_finalize() {
                 -maxdepth 1 -name 'qemu-*-static' -type f -delete
         fi
 
-        if [ -e "${ROOTFSDIR}/etc/apt/sources-list" ] && [ -e "${ROOTFSDIR}/etc/apt/sources-list.d" ]; then
+        if [ -e "${ROOTFSDIR}/etc/apt/sources-list" ] && [ -d "${ROOTFSDIR}/etc/apt/sources.list.d" ]; then
             mv "${ROOTFSDIR}/etc/apt/sources-list" \
                 "${ROOTFSDIR}/etc/apt/sources.list.d/bootstrap.list"
         fi
-- 
2.39.5

-- 
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/20241213134538.1261599-1-srinuvasan.a%40siemens.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] meta/classes/image: move sources-list as bootstrap.list in rootfs_finalize
  2024-12-13 13:45 [PATCH] meta/classes/image: move sources-list as bootstrap.list in rootfs_finalize srinuvasan.a via isar-users
@ 2024-12-20  7:47 ` Uladzimir Bely
  0 siblings, 0 replies; 2+ messages in thread
From: Uladzimir Bely @ 2024-12-20  7:47 UTC (permalink / raw)
  To: srinuvasan.a, isar-users

On Fri, 2024-12-13 at 19:15 +0530, srinuvasan.a@siemens.com wrote:
> From: srinuvasan <srinuvasan.a@siemens.com>
> 
> Presently, sources-list is not moved as bootstrap.list, even though
> the source-list file
> and sources.list.d directory present, this regression introduced in
> 8c10710
> 
> Make sure to use -d if the directory exists and use the correct name
> of the directory (sources.list.d).
> 
> Signed-off-by: srinuvasan <srinuvasan.a@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 4ed9123f..db21cc76 100644
> --- a/meta/classes/image.bbclass
> +++ b/meta/classes/image.bbclass
> @@ -416,7 +416,7 @@ do_rootfs_finalize() {
>                  -maxdepth 1 -name 'qemu-*-static' -type f -delete
>          fi
>  
> -        if [ -e "${ROOTFSDIR}/etc/apt/sources-list" ] && [ -e
> "${ROOTFSDIR}/etc/apt/sources-list.d" ]; then
> +        if [ -e "${ROOTFSDIR}/etc/apt/sources-list" ] && [ -d
> "${ROOTFSDIR}/etc/apt/sources.list.d" ]; then
>              mv "${ROOTFSDIR}/etc/apt/sources-list" \
>                  "${ROOTFSDIR}/etc/apt/sources.list.d/bootstrap.list"
>          fi

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/1c39d81a4e0d7f54d3f592933bf7f6923bc31520.camel%40ilbers.de.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-20  7:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-13 13:45 [PATCH] meta/classes/image: move sources-list as bootstrap.list in rootfs_finalize srinuvasan.a via isar-users
2024-12-20  7:47 ` Uladzimir Bely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox