Lines 180-185
Link Here
|
180 |
|
180 |
|
181 |
for DIR in /etc /var /root; |
181 |
for DIR in /etc /var /root; |
182 |
do |
182 |
do |
|
|
183 |
|
184 |
if grep -q -v ^${DIR}[[:space:]] /etc/exports |
185 |
then |
186 |
mount -o nolock -n server:${DIR} ${DIR} |
187 |
fi |
188 |
|
183 |
if [ -e /etc/conf.d/exclude/${DIR} ] |
189 |
if [ -e /etc/conf.d/exclude/${DIR} ] |
184 |
then |
190 |
then |
185 |
find ${DIR} -type d | grep -v -f /etc/conf.d/exclude/${DIR} > ${shmdir}/${DIR}.lst |
191 |
find ${DIR} -type d | grep -v -f /etc/conf.d/exclude/${DIR} > ${shmdir}/${DIR}.lst |
Lines 202-207
Link Here
|
202 |
chmod --reference=${SUBDIR} ${shmdir}/${SUBDIR} |
208 |
chmod --reference=${SUBDIR} ${shmdir}/${SUBDIR} |
203 |
done |
209 |
done |
204 |
fi |
210 |
fi |
|
|
211 |
umount -n ${DIR} > /dev/null |
205 |
mount -n -o bind ${shmdir}/${DIR} ${DIR} |
212 |
mount -n -o bind ${shmdir}/${DIR} ${DIR} |
206 |
done |
213 |
done |
207 |
|
214 |
|
Lines 209-217
Link Here
|
209 |
chmod 0777 ${shmdir}/tmp |
216 |
chmod 0777 ${shmdir}/tmp |
210 |
mount -n -o bind ${shmdir}/tmp /tmp |
217 |
mount -n -o bind ${shmdir}/tmp /tmp |
211 |
|
218 |
|
212 |
> /etc/mtab |
219 |
cat /proc/mounts > /etc/mtab |
213 |
|
220 |
|
214 |
cp -f /etc/inittab.node /etc/inittab |
221 |
cp -f /etc/inittab.node /etc/inittab |
|
|
222 |
[ -e /etc/fstab.node ] && cp -f /etc/fstab.node /etc/fstab |
215 |
killall -1 init |
223 |
killall -1 init |
216 |
|
224 |
|
217 |
eend 0 |
225 |
eend 0 |