aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-03-21 16:12:57 +0100
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-03-21 16:12:57 +0100
commit873608cd72b5d3249572abd4ecc8c5c61cfaa2cc (patch)
tree9487455e19142e0b18df4deff3aa6646a4751368
parentd801028335249e5cf126600e9a92da90e58c7eee (diff)
mount /tmp
-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))) {