mount tmpfs onto /tmp

This commit is contained in:
Izaya 2021-05-23 12:11:29 +10:00
parent 7544fdc578
commit 2867038094
1 changed files with 2 additions and 1 deletions

View File

@ -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
#endif