mirror of
https://github.com/apple/container.git
synced 2026-09-10 17:55:38 +00:00
Add /dev/rtc symlink (#252)
Closes #251 We use devtmpfs today so our pal /dev/rtc0 is there. It's typical to have a /dev/rtc symlink to /dev/rtc0.
This commit is contained in:
@@ -160,6 +160,7 @@ struct RunCommand: ParsableCommand {
|
||||
("/proc/self/fd/0", "/dev/stdin"),
|
||||
("/proc/self/fd/1", "/dev/stdout"),
|
||||
("/proc/self/fd/2", "/dev/stderr"),
|
||||
("/dev/rtc0", "/dev/rtc"),
|
||||
]
|
||||
|
||||
let rootfsURL = URL(fileURLWithPath: rootfs)
|
||||
@@ -169,7 +170,7 @@ struct RunCommand: ParsableCommand {
|
||||
if errno == EEXIST {
|
||||
continue
|
||||
}
|
||||
throw App.Errno(stage: "symlink()")
|
||||
throw App.Errno(stage: "symlink(\(src) -> \(dest.path))")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user