summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2020-06-25 10:17:10 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-28 08:36:00 +0100
commit157e44bdbaa3d5c87fc2a1dcf65d7745216b76f4 (patch)
tree62c56e1edf879530f7bbcb262e9d4462ff394b75 /scripts
parent34db68c8353f74edc61565a0c63aab788635cf55 (diff)
downloadpoky-157e44bdbaa3d5c87fc2a1dcf65d7745216b76f4.tar.gz
runqemu: If using a vmtype image do not add the -no-reboot flag
There is no way to use runqemu and turn off the no-reboot flag with a command line argument. If someone really wants it back it can be added with the qemuparams="" argument. Also if you use the "halt -p" from user space, the qemu will exit when it is complete. It is impossible to test self deploying image with runqemu if you cannot reboot the device. One might argue that you can run runqemu in a loop, but that defeats the purpose of having a wrapper around a tool that already does what is needed in the first place. For the vmtype images, the -no-reboot flag should not be added. (From OE-Core rev: 6d07a72356f9a8ea76b6cda9159d3ca4743028d9) Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 85f323a712..f2168c18a3 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -1241,7 +1241,9 @@ class BaseConfig(object):
1241 vm_drive = '-drive if=virtio,file=%s,format=%s' % (self.rootfs, rootfs_format) 1241 vm_drive = '-drive if=virtio,file=%s,format=%s' % (self.rootfs, rootfs_format)
1242 1242
1243 # All branches above set vm_drive. 1243 # All branches above set vm_drive.
1244 self.rootfs_options = '%s -no-reboot' % vm_drive 1244 self.rootfs_options = vm_drive
1245 if not self.fstype in self.vmtypes:
1246 self.rootfs_options += ' -no-reboot'
1245 self.kernel_cmdline = 'root=%s rw' % (self.get('QB_KERNEL_ROOT')) 1247 self.kernel_cmdline = 'root=%s rw' % (self.get('QB_KERNEL_ROOT'))
1246 1248
1247 if self.fstype == 'nfs': 1249 if self.fstype == 'nfs':