From 873608cd72b5d3249572abd4ecc8c5c61cfaa2cc Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Tue, 21 Mar 2023 16:12:57 +0100 Subject: mount /tmp --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) 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))) { -- cgit v1.2.3