diff --git a/src/main.rs b/src/main.rs index 8cb72d3..089475b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -59,13 +59,6 @@ const KERNEL_MOUNTS: &[MountInfo] = &[ flags: (libc::MS_NOSUID | libc::MS_NOEXEC | libc::MS_NODEV) as usize, fsdata: "", }, - MountInfo { - source: "tmpfs", - target: "/tmp", - fs_type: "tmpfs", - flags: 0, - fsdata: "", - }, MountInfo { source: "run", target: "/run", @@ -428,9 +421,10 @@ fn mount_cgroupfs() { } fn mount_virtme_overlays() { + utils::do_mkdir("/run/tmp/"); for (key, path) in env::vars() { if key.starts_with("virtme_rw_overlay") { - let dir = &format!("/tmp/{}", key); + let dir = &format!("/run/tmp/{}", key); let upperdir = &format!("{}/upper", dir); let workdir = &format!("{}/work", dir); let mnt_opts = &format!(