@@ -39,10 +39,10 @@ struct RunCommand: ParsableCommand {
3939 try execInNamespace ( spec: ociSpec, log: log)
4040 }
4141
42- private func childRootSetup( rootfs: ContainerizationOCI . Root , mounts: [ ContainerizationOCI . Mount ] , log: Logger ) throws {
42+ private func childRootSetup( rootfs: ContainerizationOCI . Root , mounts: [ ContainerizationOCI . Mount ] , process : ContainerizationOCI . Process , log: Logger ) throws {
4343 // setup rootfs
4444 try prepareRoot ( rootfs: rootfs. path)
45- try mountRootfs ( rootfs: rootfs. path, mounts: mounts)
45+ try mountRootfs ( rootfs: rootfs. path, mounts: mounts, process : process )
4646 try setDevSymlinks ( rootfs: rootfs. path)
4747
4848 try pivotRoot ( rootfs: rootfs. path)
@@ -90,7 +90,7 @@ struct RunCommand: ParsableCommand {
9090 throw App . Errno ( stage: " setsid() " )
9191 }
9292
93- try childRootSetup ( rootfs: root, mounts: spec. mounts, log: log)
93+ try childRootSetup ( rootfs: root, mounts: spec. mounts, log: log, process : process )
9494
9595 if !spec. hostname. isEmpty {
9696 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