src: mount pcsd inside toolbox container

https://github.com/containers/toolbox/pull/907

Signed-off-by: Anthony Rabbito <hello@anthonyrabbito.com>
This commit is contained in:
Anthony Rabbito 2021-10-28 20:35:41 -04:00 committed by Ondřej Míchal
parent 07afff0c30
commit a9cc052efe
1 changed files with 12 additions and 0 deletions

View File

@ -289,6 +289,17 @@ func createContainer(container, image, release string, showCommandToEnter bool)
kcmSocketMount = []string{"--volume", kcmSocketMountArg}
}
var pcscSocketMount []string
pcscSocket, err := getServiceSocket("pcsc", "pcscd.socket")
if err != nil {
logrus.Debug(err)
}
if pcscSocket != "" {
pcscSocketMountArg := pcscSocket + ":" + pcscSocket
pcscSocketMount = []string{"--volume", pcscSocketMountArg}
}
var mediaLink []string
var mediaMount []string
@ -415,6 +426,7 @@ func createContainer(container, image, release string, showCommandToEnter bool)
createArgs = append(createArgs, kcmSocketMount...)
createArgs = append(createArgs, mediaMount...)
createArgs = append(createArgs, mntMount...)
createArgs = append(createArgs, pcscSocketMount...)
createArgs = append(createArgs, runMediaMount...)
createArgs = append(createArgs, toolboxShMount...)