mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-23 02:06:47 +00:00
Merge pull request #774 from amshinde/fix-virtio-blk
block: Fix how rootfs is passed to kata-agent using virtio-blk
This commit is contained in:
commit
e39a734184
@ -874,7 +874,7 @@ func (k *kataAgent) buildContainerRootfs(sandbox *Sandbox, c *Container, rootPat
|
|||||||
|
|
||||||
if sandbox.config.HypervisorConfig.BlockDeviceDriver == VirtioBlock {
|
if sandbox.config.HypervisorConfig.BlockDeviceDriver == VirtioBlock {
|
||||||
rootfs.Driver = kataBlkDevType
|
rootfs.Driver = kataBlkDevType
|
||||||
rootfs.Source = blockDrive.VirtPath
|
rootfs.Source = blockDrive.PCIAddr
|
||||||
} else {
|
} else {
|
||||||
rootfs.Driver = kataSCSIDevType
|
rootfs.Driver = kataSCSIDevType
|
||||||
rootfs.Source = blockDrive.SCSIAddr
|
rootfs.Source = blockDrive.SCSIAddr
|
||||||
|
Loading…
Reference in New Issue
Block a user