Vminitd: Remove unneeded mkdir (#123)

The rootfs should be mounted by this point in oci alteration code.
This commit is contained in:
Danny Canter
2025-06-13 21:56:25 -07:00
committed by GitHub
parent a3cb1f0103
commit 8923495949
+1 -6
View File
@@ -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
}
}