]> Git Repo - qemu.git/commitdiff
fix -boot strict regressed in commit 6ef4716
authorAmos Kong <[email protected]>
Mon, 9 Dec 2013 11:53:15 +0000 (19:53 +0800)
committerMichael Tokarev <[email protected]>
Mon, 23 Dec 2013 12:02:20 +0000 (16:02 +0400)
Commit 6ef4716 cleaned up parsing of -boot option argument, but
accidentally dropped parameter strict.  It should have been updated
exactly like parameter menu. Do that.

Signed-off-by: Amos Kong <[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
vl.c

diff --git a/vl.c b/vl.c
index ed8debb4e0d24619981037231e24f8fb86e7e22d..e755aea8c4477c9ab46f39fd50f24188cd38cc89 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -461,7 +461,7 @@ static QemuOptsList qemu_boot_opts = {
             .type = QEMU_OPT_STRING,
         }, {
             .name = "strict",
-            .type = QEMU_OPT_STRING,
+            .type = QEMU_OPT_BOOL,
         },
         { /*End of list */ }
     },
@@ -4081,6 +4081,7 @@ int main(int argc, char **argv, char **envp)
         }
 
         boot_menu = qemu_opt_get_bool(opts, "menu", boot_menu);
+        boot_strict = qemu_opt_get_bool(opts, "strict", false);
     }
 
     if (!kernel_cmdline) {
This page took 0.032004 seconds and 4 git commands to generate.