boot-tree: live systemd boot dependency tree on a dedicated VT

This commit is contained in:
Willem Vanhulle committed 2026-10-11 15:54:28 +02:00
commit 097caf81a2
24 files changed
+4817

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
use rustix::{
system::uname,
time::{ClockId, clock_gettime},
};
use crate::model::Micros;
pub fn monotonic_now() -> Micros {
let now = clock_gettime(ClockId::Monotonic);
now.tv_sec as Micros * 1_000_000 + now.tv_nsec as Micros / 1_000
}
pub fn host_name() -> String {
uname().nodename().to_string_lossy().into_owned()
}