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:
Danny Canter
2025-08-07 13:09:57 -04:00
committed by GitHub
parent 14482784db
commit 88aeffe4db
+2 -1
View File
@@ -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))")
}
}
}