tmpfs: mount through startup, not on module load

This commit is contained in:
K. Lange 2018-10-31 18:18:11 +09:00
parent dc38dd5672
commit 758a8b6cf4
2 changed files with 4 additions and 3 deletions

4
base/etc/startup.d/00_tmpfs.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
mount tmpfs tmp,777 /tmp
mount tmpfs var,755 /var

View File

@ -568,9 +568,6 @@ static int tmpfs_initialize(void) {
buf_space = (void*)kvmalloc(BLOCKSIZE);
vfs_mount("/tmp", tmpfs_mount("tmp","/tmp"));
vfs_mount("/var", tmpfs_mount("var,755","/var"));
vfs_register("tmpfs", tmpfs_mount);
return 0;