Allow people to specify a list of early mount points which will be mounted at the end of localmount so they can do tmpfs on things like /tmp #181527.

This commit is contained in:
Mike Frysinger 2007-09-09 16:04:40 +00:00
parent 06ae2e5593
commit 230421384a
3 changed files with 16 additions and 0 deletions

View File

@ -5,6 +5,9 @@
Allow people to specify a list of temp dirs to clean in bootmisc #191807.
Allow people to specify a list of early mount points which will be mounted
at the end of localmount so they can do tmpfs on things like /tmp #181527.
04 Sep 2007; Roy Marples <uberlord@gentoo.org>:
start-stop-daemon now works with userids correctly when a pidfile

7
conf.d/localmount Normal file
View File

@ -0,0 +1,7 @@
# /etc/conf.d/localmount
# A list of mount points you want mounted before any other real
# services get started. For example, you may want to define /tmp
# or /var/tmp as tmpfs mounts in your /etc/fstab and then add those
# two paths here.
EARLY_MOUNTS=""

View File

@ -143,6 +143,12 @@ start() {
eend $?
fi
for x in ${EARLY_MOUNTS} ; do
ebegin "Early mounting ${x}"
mount ${x}
eend $?
done
# Always return 0 - some local mounts may not be critical for boot
return 0
}