summaryrefslogtreecommitdiffhomepage
path: root/runsc
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-08-12 22:06:49 +0000
committergVisor bot <gvisor-bot@google.com>2021-08-12 22:06:49 +0000
commit05406ffb7547dbe3734450bfbdfb1c271d7867f2 (patch)
treead1923edf56d3ba687fdc94c780acc65e998fb43 /runsc
parent4bb4179ff8e8d40d7f9d742b1d9667335e70cb4d (diff)
parent5f132ae1f889829e57ef6b2117342247b0f75b3a (diff)
Merge release-20210806.0-20-g5f132ae1f (automated)
Diffstat (limited to 'runsc')
-rw-r--r--runsc/cmd/verity_prepare.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/runsc/cmd/verity_prepare.go b/runsc/cmd/verity_prepare.go
index 85d762a51..44c1d05db 100644
--- a/runsc/cmd/verity_prepare.go
+++ b/runsc/cmd/verity_prepare.go
@@ -82,7 +82,7 @@ func (c *VerityPrepare) Execute(_ context.Context, f *flag.FlagSet, args ...inte
},
Process: &specs.Process{
Cwd: absRoot,
- Args: []string{c.tool, "--path", "/verityroot"},
+ Args: []string{c.tool, "--path", "/verityroot", "--rawpath", "/rawroot"},
Env: os.Environ(),
Capabilities: specutils.AllCapabilities(),
},
@@ -94,6 +94,11 @@ func (c *VerityPrepare) Execute(_ context.Context, f *flag.FlagSet, args ...inte
Type: "bind",
Options: []string{"verity.roothash="},
},
+ {
+ Source: c.dir,
+ Destination: "/rawroot",
+ Type: "bind",
+ },
},
}