Return a cap-std `Dir` type for a sysroot
(sysroot: &ostree::Sysroot)
| 39 | |
| 40 | // Return a cap-std `Dir` type for a sysroot |
| 41 | pub(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 |
no test coverage detected