From 18e3955fc0f7bedb7b95f4bb4d6f19be65011147 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Thu, 29 Oct 2020 17:54:49 +0100 Subject: [PATCH] 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 --- src/cmd/create.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/create.go b/src/cmd/create.go index 9acc612..5093889 100644 --- a/src/cmd/create.go +++ b/src/cmd/create.go @@ -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",