mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 17:26:28 +00:00
qemu: Specify the firmware file format explicitly
Currently we depend on the qemu to detect the firmware file format automatically, which is dangerous. This patch specify the 'raw' format explicitly to remove the kind of restrictions. Signed-off-by: Dennis Chen <dennis.chen@arm.com>
This commit is contained in:
parent
51046353ea
commit
023dba65c9
@ -537,7 +537,7 @@ func buildQemuCmdline(config QemuConfig) (QemuConfig, []string) {
|
||||
}
|
||||
|
||||
if config.UEFI {
|
||||
qemuArgs = append(qemuArgs, "-pflash", config.FWPath)
|
||||
qemuArgs = append(qemuArgs, "-drive", "if=pflash,format=raw,file="+config.FWPath)
|
||||
}
|
||||
|
||||
// build kernel boot config from kernel/initrd/cmdline
|
||||
|
Loading…
Reference in New Issue
Block a user