Mount temp dir at /debug_ramdisk (#1226)

This commit is contained in:
Nullptr
2023-12-23 21:05:26 +08:00
committed by GitHub
parent 6472b14a59
commit 706cd1e73e
4 changed files with 23 additions and 0 deletions

View File

@@ -194,6 +194,11 @@ pub fn on_post_data_fs() -> Result<()> {
warn!("do systemless mount failed: {}", e);
}
// mount temp dir
if let Err(e) = mount::mount_tmpfs(defs::TEMP_DIR) {
warn!("do temp dir mount failed: {}", e);
}
run_stage("post-mount", true);
std::env::set_current_dir("/").with_context(|| "failed to chdir to /")?;