]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
runqemu: print snapshot mode state in console
authorYoann Congal <yoann.congal@smile.fr>
Thu, 31 Jul 2025 15:33:13 +0000 (17:33 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Aug 2025 21:32:18 +0000 (22:32 +0100)
With snapshot enabled, no change on rootfs will be saved after qemu
shutdown. Since this is not what a user might expect, print the snapshot
mode state and its consequence in console at runqemu start.

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu

index da53265219fe898599c17bf69dd05df117b70245..a57fe794dc853ed456797977f9a424649c720f68 100755 (executable)
@@ -1053,6 +1053,9 @@ 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.")
         if self.ovmf_bios:
             logoutput.append('OVMF: %s' % self.ovmf_bios)
         if (self.ovmf_secboot_pkkek1):