Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
block: Fix how rootfs is passed to kata-agent using virtio-blk
Browse files Browse the repository at this point in the history
Kata agent expects the pci address to be passed and not the
predicted device name.

Fixes #773

Signed-off-by: Archana Shinde <[email protected]>
  • Loading branch information
amshinde committed Sep 21, 2018
1 parent a8284f8 commit 58cf7fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtcontainers/kata_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 58cf7fc

Please sign in to comment.