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:
Peng Tao 2018-09-22 13:36:31 +08:00 committed by GitHub
commit e39a734184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -874,7 +874,7 @@ func (k *kataAgent) buildContainerRootfs(sandbox *Sandbox, c *Container, rootPat
if sandbox.config.HypervisorConfig.BlockDeviceDriver == VirtioBlock {
rootfs.Driver = kataBlkDevType
rootfs.Source = blockDrive.VirtPath
rootfs.Source = blockDrive.PCIAddr
} else {
rootfs.Driver = kataSCSIDevType
rootfs.Source = blockDrive.SCSIAddr