nzr-virt: make BiosData optional
Hopefully this fixes an issue with some VMs created outside of nzr.
This commit is contained in:
parent
8448a93b21
commit
a4c38c7d82
1 changed files with 5 additions and 5 deletions
|
@ -65,10 +65,10 @@ impl Default for Domain {
|
||||||
dev: BootDevice::HardDrive,
|
dev: BootDevice::HardDrive,
|
||||||
}),
|
}),
|
||||||
r#type: OsType::default(),
|
r#type: OsType::default(),
|
||||||
bios: BiosData {
|
bios: Some(BiosData {
|
||||||
useserial: "yes".to_owned(),
|
useserial: "yes".to_owned(),
|
||||||
reboot_timeout: 0,
|
reboot_timeout: 0,
|
||||||
},
|
}),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
sysinfo: None,
|
sysinfo: None,
|
||||||
|
@ -373,7 +373,7 @@ pub struct OsData {
|
||||||
boot: Option<BootNode>,
|
boot: Option<BootNode>,
|
||||||
r#type: OsType,
|
r#type: OsType,
|
||||||
// we will not be doing PV, no <bootloader>/<kernel>/<initrd>/etc
|
// we will not be doing PV, no <bootloader>/<kernel>/<initrd>/etc
|
||||||
bios: BiosData,
|
bios: Option<BiosData>,
|
||||||
smbios: Option<SmbiosInfo>,
|
smbios: Option<SmbiosInfo>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -384,10 +384,10 @@ impl Default for OsData {
|
||||||
dev: BootDevice::HardDrive,
|
dev: BootDevice::HardDrive,
|
||||||
}),
|
}),
|
||||||
r#type: OsType::default(),
|
r#type: OsType::default(),
|
||||||
bios: BiosData {
|
bios: Some(BiosData {
|
||||||
useserial: "yes".to_owned(),
|
useserial: "yes".to_owned(),
|
||||||
reboot_timeout: 0,
|
reboot_timeout: 0,
|
||||||
},
|
}),
|
||||||
smbios: None,
|
smbios: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue