initialize_state

Function initialize_state 

Source
pub(crate) fn initialize_state(
    sysroot_path: &Utf8PathBuf,
    erofs_id: &String,
    state_path: &Utf8PathBuf,
    initialize_var: bool,
) -> Result<()>
Expand description

Mounts an EROFS image and copies the pristine /etc and /var to the deployment’s /etc and /var. Only copies /var for initial installation of deployments (non-staged deployments)