From 58cf7fc5d6ea4076844845fb8b0fb96809d8a5bd Mon Sep 17 00:00:00 2001 From: Archana Shinde Date: Fri, 21 Sep 2018 14:40:30 -0700 Subject: [PATCH] block: Fix how rootfs is passed to kata-agent using virtio-blk Kata agent expects the pci address to be passed and not the predicted device name. Fixes #773 Signed-off-by: Archana Shinde --- virtcontainers/kata_agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtcontainers/kata_agent.go b/virtcontainers/kata_agent.go index e5c03fdda..3a1d9a863 100644 --- a/virtcontainers/kata_agent.go +++ b/virtcontainers/kata_agent.go @@ -850,7 +850,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