public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 1/1] generate_initramfs: fix progress reporting on dracut
@ 2025-11-14 13:07 'Felix Moessbauer' via isar-users
  2025-11-17  8:18 ` 'Quirin Gylstorff' via isar-users
  0 siblings, 1 reply; 3+ messages in thread
From: 'Felix Moessbauer' via isar-users @ 2025-11-14 13:07 UTC (permalink / raw)
  To: isar-users; +Cc: Felix Moessbauer, Jan Kiszka

When generating the initrd with dracut, the copy-in operations emit
output that is different from the initramfs-tools output. This patch
extends the progress parser to also support the dracut output.

Prior to the patch, the progress bar stayed at 0% until the task was
finished.

Reported-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
Note: this patch is completely independent of the recent dracut series,
as debian trixie already uses dracut internally.

Best regards,
Felix Moessbauer
Siemens AG

 meta/lib/rootfs_progress.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/lib/rootfs_progress.py b/meta/lib/rootfs_progress.py
index 1cc70c87..d18d22cd 100644
--- a/meta/lib/rootfs_progress.py
+++ b/meta/lib/rootfs_progress.py
@@ -81,7 +81,9 @@ class InitrdProgressHandler(PkgsProgressHandler):
             self._stage = 'post-prepare'
 
     def process_line(self, line):
-        if line.startswith('Adding module'):
+        if line.startswith('Adding module') \
+           or line.startswith('dracut-install: cp') \
+           or line.startswith('dracut-install: Failed to find module'):
             self._pkg += 1
         elif line.startswith('(excluding'):
             self._pkg += len(line.split(' ')) - 1
-- 
2.51.0

-- 
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/20251114130711.259910-1-felix.moessbauer%40siemens.com.

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

end of thread, other threads:[~2025-11-17  8:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-14 13:07 [PATCH 1/1] generate_initramfs: fix progress reporting on dracut 'Felix Moessbauer' via isar-users
2025-11-17  8:18 ` 'Quirin Gylstorff' via isar-users
2025-11-17  8:23   ` 'Quirin Gylstorff' via isar-users

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