This commit is contained in:
Jack L. Frost 2014-12-30 18:41:24 +03:00
parent 158c5939fd
commit c23f30e7ca
1 changed files with 8 additions and 0 deletions

8
rc.in
View File

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