aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index e33f007..43f82c5 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -117,6 +117,10 @@ fn main() -> ExitCode {
let _boot_handle = mount_or_halt(1, "/boot", "vfat");
let _data_handle = mount_or_halt(4, "/data", "ext4");
+ let _tmp_handle = Mount::builder()
+ .fstype("tmpfs")
+ .mount("tmpfs", "/tmp")
+ .expect("can't mount /tmp tmpfs");
if process::id() != 1 {
match stdout.set_color(ColorSpec::new().set_fg(Some(Color::Red))) {