MCPcopy Create free account
hub / github.com/bootc-dev/bootc / sysroot_dir

Function sysroot_dir

crates/lib/src/utils.rs:41–43  ·  view source on GitHub ↗

Return a cap-std `Dir` type for a sysroot

(sysroot: &ostree::Sysroot)

Source from the content-addressed store, hash-verified

39
40// Return a cap-std `Dir` type for a sysroot
41pub(crate) fn sysroot_dir(sysroot: &ostree::Sysroot) -> Result<Dir> {
42 Dir::reopen_dir(&sysroot_fd(sysroot)).map_err(Into::into)
43}
44
45// Return a cap-std `Dir` type for a deployment.
46// TODO: in the future this should perhaps actually mount via composefs

Callers 9

initialize_ostree_rootFunction · 0.85
ostree_installFunction · 0.85
install_resetFunction · 0.85
new_ostreeMethod · 0.85
get_ensure_imgstoreMethod · 0.85
update_mtimeMethod · 0.85
impl_completionFunction · 0.85

Calls 1

sysroot_fdFunction · 0.70

Tested by

no test coverage detected