From 88aeffe4dbced84a72556fb52333afa7d3103260 Mon Sep 17 00:00:00 2001 From: Danny Canter Date: Thu, 7 Aug 2025 10:09:57 -0700 Subject: [PATCH] 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. --- vminitd/Sources/vmexec/RunCommand.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vminitd/Sources/vmexec/RunCommand.swift b/vminitd/Sources/vmexec/RunCommand.swift index 42ba3114..c9316840 100644 --- a/vminitd/Sources/vmexec/RunCommand.swift +++ b/vminitd/Sources/vmexec/RunCommand.swift @@ -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))") } } }