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.