The user-tmpfs program
The user-tmpfs program prepares
a user owned tmpfs for
the user defined in the USER
environment variable.
The user owned tmpfs is created at
@tmpfsdir@/@usrrundir@/${USER}.
Interface
user-tmpfs
- user-tmpfs takes no arguments.
-
It reads the
USERenvironment variable, if it is empty it exits 100. -
It reads the
USER_TMPFSDIR_SIZEenvironment variable, defaulting to64mif undefined. -
It creates the directory
@tmpfsdir@/@usrrundir@/${USER}. -
It mounts a tmpfs
of size
USER_TMPFSDIR_SIZEwith its root owned biUSERand mode0755at@tmpfsdir@/@usrrundir@/${USER}.
Exit codes
- 100 if a critical environment variable is missing.
- Since user-tmpfs is an execline script, it exits with an approximation of employed program that failed.
- user-tmpfs mostly uses execline and s6 software, the exit behaviour of which can be looked up on their respective documentation.
- See also: execline exit code handling.
Options
- There are no otions to user-tmpfs.
Notes
user-tmpfs is intended to be used in a boot time system supervision tree oneshot service to prepare the user runtime directory of a user. For each user who should have a user runtime directory, there should be a distinct oneshot running user-tmpfs.
Alternatively, user-tmpfs could be run by a login manager after login, but befor initiating the first user supervision tree.
