aboutsummaryrefslogtreecommitdiffstats
path: root/bootscripts/contrib/lsb-v3
diff options
context:
space:
mode:
Diffstat (limited to 'bootscripts/contrib/lsb-v3')
-rw-r--r--bootscripts/contrib/lsb-v3/Makefile8
-rw-r--r--bootscripts/contrib/lsb-v3/init.d/modules2
-rw-r--r--bootscripts/contrib/lsb-v3/init.d/mountfs2
-rw-r--r--bootscripts/contrib/lsb-v3/init.d/mountvirtfs (renamed from bootscripts/contrib/lsb-v3/init.d/mountkernfs)17
-rw-r--r--bootscripts/contrib/lsb-v3/init.d/sysctl2
5 files changed, 19 insertions, 12 deletions
diff --git a/bootscripts/contrib/lsb-v3/Makefile b/bootscripts/contrib/lsb-v3/Makefile
index d86c083cb..0d31fb60a 100644
--- a/bootscripts/contrib/lsb-v3/Makefile
+++ b/bootscripts/contrib/lsb-v3/Makefile
@@ -35,7 +35,7 @@ install: create-dirs create-service-dir create-boottemp-dir
install -m ${MODE} init.d/localnet ${EXTDIR}/init.d/
install -m ${MODE} init.d/modules ${EXTDIR}/init.d/
install -m ${MODE} init.d/mountfs ${EXTDIR}/init.d/
- install -m ${MODE} init.d/mountkernfs ${EXTDIR}/init.d/
+ install -m ${MODE} init.d/mountvirtfs ${EXTDIR}/init.d/
install -m ${MODE} init.d/network ${EXTDIR}/init.d/
install -m ${MODE} init.d/rc ${EXTDIR}/init.d/
install -m ${MODE} init.d/reboot ${EXTDIR}/init.d/
@@ -67,7 +67,7 @@ install: create-dirs create-service-dir create-boottemp-dir
/usr/lib/lsb/install_initd ${EXTDIR}/init.d/localnet
/usr/lib/lsb/install_initd ${EXTDIR}/init.d/modules
/usr/lib/lsb/install_initd ${EXTDIR}/init.d/mountfs
- /usr/lib/lsb/install_initd ${EXTDIR}/init.d/mountkernfs
+ /usr/lib/lsb/install_initd ${EXTDIR}/init.d/mountvirtfs
/usr/lib/lsb/install_initd ${EXTDIR}/init.d/network
/usr/lib/lsb/install_initd ${EXTDIR}/init.d/reboot
/usr/lib/lsb/install_initd ${EXTDIR}/init.d/sendsignals
@@ -85,7 +85,7 @@ minimal: create-dirs create-service-dir create-boottemp-dir
install -m ${MODE} init.d/halt ${EXTDIR}/init.d/
install -m ${MODE} init.d/localnet ${EXTDIR}/init.d/
install -m ${MODE} init.d/mountfs ${EXTDIR}/init.d/
- install -m ${MODE} init.d/mountkernfs ${EXTDIR}/init.d/
+ install -m ${MODE} init.d/mountvirtfs ${EXTDIR}/init.d/
install -m ${MODE} init.d/rc ${EXTDIR}/init.d/
install -m ${MODE} init.d/reboot ${EXTDIR}/init.d/
install -m ${MODE} init.d/sendsignals ${EXTDIR}/init.d/
@@ -103,7 +103,7 @@ minimal: create-dirs create-service-dir create-boottemp-dir
/usr/lib/lsb/install_initd ${EXTDIR}/init.d/halt
/usr/lib/lsb/install_initd ${EXTDIR}/init.d/localnet
/usr/lib/lsb/install_initd ${EXTDIR}/init.d/mountfs
- /usr/lib/lsb/install_initd ${EXTDIR}/init.d/mountkernfs
+ /usr/lib/lsb/install_initd ${EXTDIR}/init.d/mountvirtfs
/usr/lib/lsb/install_initd ${EXTDIR}/init.d/reboot
/usr/lib/lsb/install_initd ${EXTDIR}/init.d/sendsignals
/usr/lib/lsb/install_initd ${EXTDIR}/init.d/setclock
diff --git a/bootscripts/contrib/lsb-v3/init.d/modules b/bootscripts/contrib/lsb-v3/init.d/modules
index b233cf46d..f97cb892d 100644
--- a/bootscripts/contrib/lsb-v3/init.d/modules
+++ b/bootscripts/contrib/lsb-v3/init.d/modules
@@ -3,7 +3,7 @@
### BEGIN INIT INFO
# Provides: modules
-# Required-Start: mountkernfs sysctl
+# Required-Start: mountvirts sysctl
# Should-Start:
# Required-Stop:
# Should-Stop:
diff --git a/bootscripts/contrib/lsb-v3/init.d/mountfs b/bootscripts/contrib/lsb-v3/init.d/mountfs
index 2e03db582..5a375ec51 100644
--- a/bootscripts/contrib/lsb-v3/init.d/mountfs
+++ b/bootscripts/contrib/lsb-v3/init.d/mountfs
@@ -33,6 +33,7 @@ case "${1}" in
mount -f / || failed=1
mount -f /proc || failed=1
mount -f /sys || failed=1
+ mount -f /run || failed=1
(exit ${failed})
evaluate_retval standard
@@ -40,6 +41,7 @@ case "${1}" in
# their option list. _netdev denotes a network filesystem.
message="Mounting remaining file systems..."
mount -a -O no_netdev >/dev/null
+ ln -s /run/shm /dev/shm
evaluate_retval standard
;;
diff --git a/bootscripts/contrib/lsb-v3/init.d/mountkernfs b/bootscripts/contrib/lsb-v3/init.d/mountvirtfs
index 7366f0bf1..6706da0a3 100644
--- a/bootscripts/contrib/lsb-v3/init.d/mountkernfs
+++ b/bootscripts/contrib/lsb-v3/init.d/mountvirtfs
@@ -1,16 +1,16 @@
#!/bin/sh
-# Begin /etc/init.d/mountkernfs
+# Begin /etc/init.d/mountvirtfs
### BEGIN INIT INFO
-# Provides: mountkernfs
+# Provides: mountvirtfs
# Required-Start:
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start: S
# Default-Stop:
-# Short-Description: Mounts /sys and /proc virtual (kernel) filesystems.
-# Description: Mounts /sys and /proc virtual (kernel) filesystems.
+# Short-Description: Mounts /sys, /proc, and /run virtual (virtel) filesystems.
+# Description: Mounts /sys, /proc, and run virtual (virtel) filesystems.
# X-LFS-Provided-By: LFS
### END INIT INFO
@@ -18,7 +18,7 @@
case "${1}" in
start)
- message="Mounting kernel-based file systems:"
+ message="Mounting virtel-based file systems:"
if ! mountpoint /proc > /dev/null; then
message="${message}${INFO} /proc${NORMAL}"
@@ -30,6 +30,11 @@ case "${1}" in
mount -n /sys || failed=1
fi
+ if ! mountpoint /run > /dev/null; then
+ message="${message}${INFO} /run${NORMAL}"
+ mount -n /run || failed=1
+ fi
+
(exit ${failed})
evaluate_retval standard
;;
@@ -40,4 +45,4 @@ case "${1}" in
;;
esac
-# End /etc/init.d/mountkernfs
+# End /etc/init.d/mountvirtfs
diff --git a/bootscripts/contrib/lsb-v3/init.d/sysctl b/bootscripts/contrib/lsb-v3/init.d/sysctl
index 813467117..cccff126e 100644
--- a/bootscripts/contrib/lsb-v3/init.d/sysctl
+++ b/bootscripts/contrib/lsb-v3/init.d/sysctl
@@ -3,7 +3,7 @@
### BEGIN INIT INFO
# Provides: sysctl
-# Required-Start: mountkernfs
+# Required-Start: mountvirtfs
# Should-Start:
# Required-Stop:
# Should-Stop: