* [PATCH] runqemu: fix snapshot status log format
@ 2025-09-01 15:55 Gyorgy Sarvari
0 siblings, 0 replies; only message in thread
From: Gyorgy Sarvari @ 2025-09-01 15:55 UTC (permalink / raw)
To: openembedded-core
The snapshot status is diisplayed incorrectly, in case snasphot is disabled.
Enabled state:
SNAPSHOT: [Enabled. Changes on rootfs won't be kept after QEMU shutdown.]
Disabled state:
Disabled. Changes on rootfs will be kept after QEMU shutdown.
Fix the log output to make them have the same format.
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
---
scripts/runqemu | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/scripts/runqemu b/scripts/runqemu
index 827300080a..fd61f3b605 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -1054,9 +1054,10 @@ to your build configuration.
logoutput.append('NFS_DIR: [%s]' % self.rootfs)
else:
logoutput.append('ROOTFS: [%s]' % self.rootfs)
- logoutput.append('SNAPSHOT: [%s]' %
- "Enabled. Changes on rootfs won't be kept after QEMU shutdown." if self.snapshot
- else "Disabled. Changes on rootfs will be kept after QEMU shutdown.")
+
+ logoutput.append(f'SNAPSHOT: [{"Enabled. Changes on rootfs won't be kept after QEMU shutdown." if self.snapshot
+ else "Disabled. Changes on rootfs will be kept after QEMU shutdown."}]')
+
if self.ovmf_bios:
logoutput.append('OVMF: %s' % self.ovmf_bios)
if (self.ovmf_secboot_pkkek1):
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-09-01 15:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-01 15:55 [PATCH] runqemu: fix snapshot status log format Gyorgy Sarvari
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).