From 2867038094b1639592bd49b761712896f410ce09 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Sun, 23 May 2021 12:11:29 +1000 Subject: [PATCH] mount tmpfs onto /tmp --- src/c/init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/c/init.c b/src/c/init.c index 2c9ab52..facacd0 100644 --- a/src/c/init.c +++ b/src/c/init.c @@ -11,6 +11,7 @@ void lupi_init() { if(getpid() == 1) { mount(NULL, "/sys", "sysfs", 0, NULL); mount(NULL, "/proc", "procfs", 0, NULL); + mount(NULL, "/tmp", "tmpfs", 0, NULL); } struct statvfs fsstat; @@ -21,4 +22,4 @@ void lupi_init() { void lupi_init() { } -#endif \ No newline at end of file +#endif