cmd/create: Expose the host's /boot inside the container at /run/host

As requested by Colin Walters.

https://github.com/containers/toolbox/pull/606
This commit is contained in:
Debarshi Ray 2020-10-29 17:54:49 +01:00
parent d065ca460a
commit 18e3955fc0
1 changed files with 1 additions and 0 deletions

View File

@ -358,6 +358,7 @@ func createContainer(container, image, release string, showCommandToEnter bool)
createArgs = append(createArgs, []string{
"--userns=keep-id",
"--user", "root:root",
"--volume", "/boot:/run/host/boot:rslave",
"--volume", "/etc:/run/host/etc",
"--volume", "/dev:/dev:rslave",
"--volume", "/run:/run/host/run:rslave",