mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
parent
046d82d72f
commit
64b0484cad
@ -1071,7 +1071,7 @@ xenParseOS(virConfPtr conf, virDomainDefPtr def)
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
for (i = 0; i < VIR_DOMAIN_BOOT_LAST && boot[i]; i++) {
|
for (i = 0; i < VIR_DOMAIN_BOOT_LAST && boot[i]; i++) {
|
||||||
switch (*boot) {
|
switch (boot[i]) {
|
||||||
case 'a':
|
case 'a':
|
||||||
def->os.bootDevs[i] = VIR_DOMAIN_BOOT_FLOPPY;
|
def->os.bootDevs[i] = VIR_DOMAIN_BOOT_FLOPPY;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user