mirror of
https://github.com/apple/container.git
synced 2026-09-11 02:05:45 +00:00
Vminitd: Remove special cased /run mount (#233)
Revisiting this, I'm not a huge fan of having /run be special cased for some reason
This commit is contained in:
@@ -56,6 +56,8 @@ extension Vminitd: VirtualMachineAgent {
|
||||
try await setenv(key: "PATH", value: Self.defaultPath)
|
||||
|
||||
let mounts: [ContainerizationOCI.Mount] = [
|
||||
// NOTE: /proc is always done implicitly by the guest agent.
|
||||
.init(type: "tmpfs", source: "tmpfs", destination: "/run"),
|
||||
.init(type: "sysfs", source: "sysfs", destination: "/sys"),
|
||||
.init(type: "tmpfs", source: "tmpfs", destination: "/tmp"),
|
||||
.init(type: "devpts", source: "devpts", destination: "/dev/pts", options: ["gid=5", "mode=620", "ptmxmode=666"]),
|
||||
|
||||
@@ -99,10 +99,7 @@ struct Application {
|
||||
log.error("failed to mount /proc")
|
||||
exit(1)
|
||||
}
|
||||
guard Musl.mount("tmpfs", "/run", "tmpfs", 0, "") == 0 else {
|
||||
log.error("failed to mount /run")
|
||||
exit(1)
|
||||
}
|
||||
|
||||
try Binfmt.mount()
|
||||
|
||||
log.logLevel = .debug
|
||||
|
||||
Reference in New Issue
Block a user