nix::unistd

Function pivot_root

source
pub fn pivot_root<P1: ?Sized + NixPath, P2: ?Sized + NixPath>(
    new_root: &P1,
    put_old: &P2,
) -> Result<()>
Expand description

Change the root file system.

See Also pivot_root