120 |
mount -n -t tmpfs tmpfs "${svcdir}" -o rw,mode=0644,size="${svcsize}"k |
mount -n -t tmpfs tmpfs "${svcdir}" -o rw,mode=0644,size="${svcsize}"k |
121 |
evaluate_retval |
evaluate_retval |
122 |
|
|
123 |
|
## /run /tmp /var/lock |
124 |
|
for i in /run /tmp /var/lock |
125 |
|
do |
126 |
|
if [ -d ${i} ] |
127 |
|
then |
128 |
|
rc_print "Mounting tmpfs at ${i} ..." |
129 |
|
mount -n -t tmpfs tmpfs ${i} -o rw,nosuid,nodev,relatime |
130 |
|
evaluate_retval |
131 |
|
fi |
132 |
|
done |
133 |
|
# extra check for /var/lock |
134 |
|
if [ -L /var/lock ] |
135 |
|
then |
136 |
|
mkdir -p /run/lock |
137 |
|
rc_print "Mounting tmpfs at /run/lock ..." |
138 |
|
mount -n -t tmpfs tmpfs /run/lock -o rw,nosuid,nodev,relatime |
139 |
|
evaluate_retval |
140 |
|
fi |
141 |
|
# extra check if /run and /var/run are directories |
142 |
|
if [ -d /run ] && [ -d /var/run ] |
143 |
|
then |
144 |
|
rc_print "Mounting tmpfs at /var/run ..." |
145 |
|
mount -n -o bind /run /var/run |
146 |
|
evaluate_retval |
147 |
|
fi |
148 |
|
|
149 |
# load bootsplash |
# load bootsplash |
150 |
splash "rc_init" "${runlevel}" |
splash "rc_init" "${runlevel}" |
151 |
fi |
fi |