public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] fix rebuild of rootfs_finalize task
@ 2023-01-06 10:05 Felix Moessbauer
  2023-01-06 17:56 ` Roberto A. Foglietta
  2023-01-06 18:03 ` Henning Schild
  0 siblings, 2 replies; 3+ messages in thread
From: Felix Moessbauer @ 2023-01-06 10:05 UTC (permalink / raw)
  To: isar-users
  Cc: venkata.pyla, amikan, jan.kiszka, kazuhiro3.hayashi,
	dinesh.kumar, henning.schild, Felix Moessbauer

The rootfs_finalize task currently cannot be re-executed, as it moves
the sources-list into bootstrap.list. As this only has to be done once,
it is not required on subsequent executions. To fix the rebuild issue,
we simply ignore the return code of the mv statement.

Signed-off-by: Felix Moessbauer <felix.moessbauer@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 629a0c1..6f0607e 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -425,7 +425,7 @@ do_rootfs_finalize() {
         rm -f "${ROOTFSDIR}/etc/apt/apt.conf.d/50isar"
 
         mv "${ROOTFSDIR}/etc/apt/sources-list" \
-            "${ROOTFSDIR}/etc/apt/sources.list.d/bootstrap.list"
+            "${ROOTFSDIR}/etc/apt/sources.list.d/bootstrap.list" || true
 
         rm -f "${ROOTFSDIR}/etc/apt/sources-list"
 EOSUDO
-- 
2.34.1


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

end of thread, other threads:[~2023-01-06 18:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-06 10:05 [PATCH] fix rebuild of rootfs_finalize task Felix Moessbauer
2023-01-06 17:56 ` Roberto A. Foglietta
2023-01-06 18:03 ` Henning Schild

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