umount modules before switch_root
This commit is contained in:
@@ -144,6 +144,9 @@ pub async fn run() {
|
||||
warn!("failed to copy {INIT_LOG} to system: {e}");
|
||||
}
|
||||
|
||||
if let Err(e) = nix::mount::umount2("/modules", nix::mount::MntFlags::MNT_DETACH) {
|
||||
warn!("failed to umount /modules: {e}");
|
||||
}
|
||||
retry(async || switch_root("/system").await).await;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user