Skip to content

Commit 8923495

Browse files
authored
Vminitd: Remove unneeded mkdir (#123)
The rootfs should be mounted by this point in oci alteration code.
1 parent a3cb1f0 commit 8923495

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

vminitd/Sources/vminitd/Server+GRPC.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ extension Initd: Com_Apple_Containerization_Sandbox_V3_SandboxContextAsyncProvid
257257
])
258258

259259
do {
260-
// FIXME: Handle single file mounts.
261260
let mnt = ContainerizationOS.Mount(
262261
type: request.type,
263262
source: request.source,
@@ -836,11 +835,6 @@ extension Initd {
836835
)
837836
}
838837

839-
try FileManager.default.createDirectory(
840-
atPath: root.path,
841-
withIntermediateDirectories: true
842-
)
843-
844838
if process.cwd.isEmpty {
845839
process.cwd = "/"
846840
}
@@ -855,6 +849,7 @@ extension Initd {
855849
if !process.env.contains("HOME") {
856850
process.env.append("HOME=\(parsedUser.home)")
857851
}
852+
858853
ociSpec.process = process
859854
}
860855
}

0 commit comments

Comments
 (0)