summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorYoann Congal <yoann.congal@smile.fr>2025-07-31 17:33:13 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-08-06 22:32:41 +0100
commitb034dcc31437447d363e447124bdd0e586931138 (patch)
tree3cbd3707f08e5b4de4908a7bb2f58a4830af4f88 /scripts
parent60676f12f2964379a17a41799ecab779ac9cb8be (diff)
downloadpoky-b034dcc31437447d363e447124bdd0e586931138.tar.gz
runqemu: print snapshot mode state in console
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. (From OE-Core rev: 57fe8538a87ff1f69f274d9692f038caed6cb5cd) Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index da53265219..a57fe794dc 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -1053,6 +1053,9 @@ to your build configuration.
1053 logoutput.append('NFS_DIR: [%s]' % self.rootfs) 1053 logoutput.append('NFS_DIR: [%s]' % self.rootfs)
1054 else: 1054 else:
1055 logoutput.append('ROOTFS: [%s]' % self.rootfs) 1055 logoutput.append('ROOTFS: [%s]' % self.rootfs)
1056 logoutput.append('SNAPSHOT: [%s]' %
1057 "Enabled. Changes on rootfs won't be kept after QEMU shutdown." if self.snapshot
1058 else "Disabled. Changes on rootfs will be kept after QEMU shutdown.")
1056 if self.ovmf_bios: 1059 if self.ovmf_bios:
1057 logoutput.append('OVMF: %s' % self.ovmf_bios) 1060 logoutput.append('OVMF: %s' % self.ovmf_bios)
1058 if (self.ovmf_secboot_pkkek1): 1061 if (self.ovmf_secboot_pkkek1):