Skip to main content

switch_root

Function switch_root 

Source
pub fn switch_root(new_root: &Path, allow_chroot_fallback: bool) -> Result<()>
Expand description

Switch to new root filesystem using pivot_root or chroot

This implements the transition: populated -> pivoted Fails closed if root switching cannot be established.