mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 00:37:24 +00:00
s390x: Add appendImage function to qemu_s390x.go
Add appendImage function to struct qemuS390x, so that a call of appendImage results in a call to the appendBlockDevice function of qemuS390x instead of qemuArchBase. Fixes: #2043 Signed-off-by: Jan Schintag <jan.schintag@de.ibm.com>
This commit is contained in:
parent
571ede536b
commit
2faece3583
@ -126,6 +126,18 @@ func (q *qemuS390x) appendConsole(devices []govmmQemu.Device, path string) ([]go
|
|||||||
return devices, nil
|
return devices, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (q *qemuS390x) appendImage(devices []govmmQemu.Device, path string) ([]govmmQemu.Device, error) {
|
||||||
|
drive, err := genericImage(path)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
devices, err = q.appendBlockDevice(devices, drive)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return devices, nil
|
||||||
|
}
|
||||||
|
|
||||||
func (q *qemuS390x) appendBlockDevice(devices []govmmQemu.Device, drive config.BlockDrive) ([]govmmQemu.Device, error) {
|
func (q *qemuS390x) appendBlockDevice(devices []govmmQemu.Device, drive config.BlockDrive) ([]govmmQemu.Device, error) {
|
||||||
d, err := genericBlockDevice(drive, false)
|
d, err := genericBlockDevice(drive, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user