mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 11:00:25 +00:00
Merge pull request #2203 from arm64b/firmware-file-in-container
ARM64: specify external firware binary for containerized qemu
This commit is contained in:
commit
9d423204f7
@ -302,6 +302,13 @@ func runQemuContainer(config QemuConfig) error {
|
||||
var args []string
|
||||
config, args = buildQemuCmdline(config)
|
||||
|
||||
// if user specify the "-fw" parameter, this should override the default in container context,
|
||||
// with "-v" option, we will have the chance to assign an external FW binary to the containerized qemu
|
||||
// instead of the fixed FW bin instealled by the build process of the image.
|
||||
if config.UEFI {
|
||||
binds = append(binds, "-v", fmt.Sprintf("%[1]s:%[1]s", config.FWPath))
|
||||
}
|
||||
|
||||
dockerArgs := append([]string{"run", "--interactive", "--rm", "-w", cwd}, binds...)
|
||||
dockerArgsImg := append([]string{"run", "--rm", "-w", cwd}, binds...)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user