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:
parent
07afff0c30
commit
a9cc052efe
|
@ -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...)
|
||||
|
||||
|
|
Loading…
Reference in New Issue