mount tmpfs onto /tmp

This commit is contained in:
Izaya 2021-05-23 12:11:29 +10:00
parent 7544fdc578
commit 2867038094

View File

@ -11,6 +11,7 @@ void lupi_init() {
if(getpid() == 1) { if(getpid() == 1) {
mount(NULL, "/sys", "sysfs", 0, NULL); mount(NULL, "/sys", "sysfs", 0, NULL);
mount(NULL, "/proc", "procfs", 0, NULL); mount(NULL, "/proc", "procfs", 0, NULL);
mount(NULL, "/tmp", "tmpfs", 0, NULL);
} }
struct statvfs fsstat; struct statvfs fsstat;
@ -21,4 +22,4 @@ void lupi_init() {
void lupi_init() { void lupi_init() {
} }
#endif #endif