tmpdirs
This commit is contained in:
parent
158c5939fd
commit
c23f30e7ca
8
rc.in
8
rc.in
|
@ -11,6 +11,9 @@ cfg_mounts+=( 'pts:devpts:/dev/pts:noexec,nosuid,gid=5,mode=0620' )
|
|||
cfg_mounts+=( 'mqueue:mqueue:/dev/mqueue:noexec,nosuid,nodev' )
|
||||
cfg_mounts+=( 'shm:tmpfs:/dev/shm:defaults,mode=0777' )
|
||||
|
||||
# Some temporary directories
|
||||
cfg_tmpdirs+=( '/run/lock' '/run/lock/lvm' '/run/lvm' '/run/user' )
|
||||
|
||||
# Functions
|
||||
rc.rescue() { exec "${cfg_rc_rescue_shell:-"$SHELL"}"; }
|
||||
|
||||
|
@ -24,6 +27,10 @@ rc.motd() {
|
|||
return 0
|
||||
}
|
||||
|
||||
rc.tmpdirs() {
|
||||
mkdir -p -m0755 "${cfg_tmpdirs[@]}"
|
||||
}
|
||||
|
||||
rc.mount_misc() {
|
||||
for m in "${cfg_mounts[@]}"; do
|
||||
IFS=':' read fs fs_type mountpoint mount_options <<< "$m"
|
||||
|
@ -107,6 +114,7 @@ rc.remount_root() {
|
|||
|
||||
rc.boot() {
|
||||
rc.mount_misc
|
||||
rc.tmpdirs
|
||||
rc.hostname
|
||||
rc.timezone
|
||||
rc.modules
|
||||
|
|
Loading…
Reference in New Issue
Block a user