default IFS, add tmp
This commit is contained in:
parent
63eda033cc
commit
5dad6a777e
16
rc.conf
16
rc.conf
|
@ -22,14 +22,16 @@ ctrlaltdel soft
|
||||||
|
|
||||||
# Virtual filesystems
|
# Virtual filesystems
|
||||||
cfg_mounts=(
|
cfg_mounts=(
|
||||||
'proc:proc:/proc'
|
'run tmpfs /run'
|
||||||
'run:tmpfs:/run'
|
'tmp tmpfs /tmp'
|
||||||
'sys:sysfs:/sys'
|
|
||||||
|
|
||||||
'dev:devtmpfs:/dev'
|
'proc proc /proc'
|
||||||
'pts:devpts:/dev/pts:noexec,nosuid,gid=5,mode=0620'
|
'sys sysfs /sys'
|
||||||
'mqueue:mqueue:/dev/mqueue:noexec,nosuid,nodev'
|
|
||||||
'shm:tmpfs:/dev/shm:defaults,mode=0777'
|
'dev devtmpfs /dev'
|
||||||
|
'pts devpts /dev/pts noexec,nosuid,gid=5,mode=0620'
|
||||||
|
'mqueue mqueue /dev/mqueue noexec,nosuid,nodev'
|
||||||
|
'shm tmpfs /dev/shm defaults,mode=0777'
|
||||||
)
|
)
|
||||||
|
|
||||||
# Some temporary directories and files
|
# Some temporary directories and files
|
||||||
|
|
2
rc.in
2
rc.in
|
@ -28,7 +28,7 @@ rc.tmpfiles() {
|
||||||
|
|
||||||
rc.mount() {
|
rc.mount() {
|
||||||
for fs in "${cfg_mounts[@]}"; do
|
for fs in "${cfg_mounts[@]}"; do
|
||||||
echo "$fs" | while IFS=':' read device fs_type mountpoint mount_options; do
|
echo "$fs" | while read device fs_type mountpoint mount_options; do
|
||||||
|
|
||||||
[[ "$mount_options" ]] || { mount_options='defaults'; }
|
[[ "$mount_options" ]] || { mount_options='defaults'; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user