mirror of
https://github.com/apple/container.git
synced 2026-09-26 17:45:41 +00:00
Vminitd: Remove unneeded mkdir (#123)
The rootfs should be mounted by this point in oci alteration code.
This commit is contained in:
@@ -257,7 +257,6 @@ extension Initd: Com_Apple_Containerization_Sandbox_V3_SandboxContextAsyncProvid
|
||||
])
|
||||
|
||||
do {
|
||||
// FIXME: Handle single file mounts.
|
||||
let mnt = ContainerizationOS.Mount(
|
||||
type: request.type,
|
||||
source: request.source,
|
||||
@@ -836,11 +835,6 @@ extension Initd {
|
||||
)
|
||||
}
|
||||
|
||||
try FileManager.default.createDirectory(
|
||||
atPath: root.path,
|
||||
withIntermediateDirectories: true
|
||||
)
|
||||
|
||||
if process.cwd.isEmpty {
|
||||
process.cwd = "/"
|
||||
}
|
||||
@@ -855,6 +849,7 @@ extension Initd {
|
||||
if !process.env.contains("HOME") {
|
||||
process.env.append("HOME=\(parsedUser.home)")
|
||||
}
|
||||
|
||||
ociSpec.process = process
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user