boot-tree: single-threaded feed, Duration timestamps, fields over getters, jiff formatting

This commit is contained in:
Willem Vanhulle committed 2026-10-11 15:54:28 +02:00
1 parent 63743d8807
commit 2b1447965a
11 files changed
+714 -757

No files matched your search

+2 -6
View File
@@ -1,4 +1,4 @@
use std::{os::fd::OwnedFd, path::Path};
use std::os::fd::OwnedFd;
use rustix::{
fs::{Mode, OFlags, open},
@@ -7,11 +7,7 @@ use rustix::{
};
const SYSROOT: &str = "/sysroot";
const INITRD_RELEASE: &str = "/etc/initrd-release";
pub fn running_in_initrd() -> bool {
Path::new(INITRD_RELEASE).exists()
}
pub const INITRD_RELEASE: &str = "/etc/initrd-release";
pub struct Sysroot {
directory: OwnedFd,