提交 64b0484c 编写于 作者: W Wei Liu 提交者: John Ferlan

xenconfig: fix boot device parsing

The original code always checked *boot which was in effect boot[0]. It
should use boot[i].
Signed-off-by: NWei Liu <wei.liu2@citrix.com>
上级 046d82d7
......@@ -1071,7 +1071,7 @@ xenParseOS(virConfPtr conf, virDomainDefPtr def)
return -1;
for (i = 0; i < VIR_DOMAIN_BOOT_LAST && boot[i]; i++) {
switch (*boot) {
switch (boot[i]) {
case 'a':
def->os.bootDevs[i] = VIR_DOMAIN_BOOT_FLOPPY;
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册