tmpfs: mount through startup, not on module load
This commit is contained in:
parent
dc38dd5672
commit
758a8b6cf4
4
base/etc/startup.d/00_tmpfs.sh
Executable file
4
base/etc/startup.d/00_tmpfs.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
mount tmpfs tmp,777 /tmp
|
||||
mount tmpfs var,755 /var
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user