@@ -42,10 +42,10 @@ struct RunCommand: ParsableCommand {
4242 try execInNamespace ( spec: ociSpec, log: log)
4343 }
4444
45- private func childRootSetup( rootfs: ContainerizationOCI . Root , mounts: [ ContainerizationOCI . Mount ] , log: Logger ) throws {
45+ private func childRootSetup( rootfs: ContainerizationOCI . Root , mounts: [ ContainerizationOCI . Mount ] , process : ContainerizationOCI . Process , log: Logger ) throws {
4646 // setup rootfs
4747 try prepareRoot ( rootfs: rootfs. path)
48- try mountRootfs ( rootfs: rootfs. path, mounts: mounts)
48+ try mountRootfs ( rootfs: rootfs. path, mounts: mounts, process : process )
4949 try setDevSymlinks ( rootfs: rootfs. path)
5050
5151 try pivotRoot ( rootfs: rootfs. path)
@@ -93,7 +93,7 @@ struct RunCommand: ParsableCommand {
9393 throw App . Errno ( stage: " setsid() " )
9494 }
9595
96- try childRootSetup ( rootfs: root, mounts: spec. mounts, log: log)
96+ try childRootSetup ( rootfs: root, mounts: spec. mounts, log: log, process : process )
9797
9898 if !spec. hostname. isEmpty {
9999 let errCode = spec. hostname. withCString { ptr in
@@ -138,10 +138,10 @@ struct RunCommand: ParsableCommand {
138138 }
139139 }
140140
141- private func mountRootfs( rootfs: String , mounts: [ ContainerizationOCI . Mount ] ) throws {
141+ private func mountRootfs( rootfs: String , mounts: [ ContainerizationOCI . Mount ] , process : ContainerizationOCI . Process ) throws {
142142 let containerMount = ContainerMount ( rootfs: rootfs, mounts: mounts)
143143 try containerMount. mountToRootfs ( )
144- try containerMount. configureConsole ( )
144+ try containerMount. configureConsole ( process )
145145 }
146146
147147 private func prepareRoot( rootfs: String ) throws {
0 commit comments