aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <bero@redhat.com>2000-03-21 10:02:42 +0000
committerBernhard Rosenkraenzer <bero@redhat.com>2000-03-21 10:02:42 +0000
commitc319567f426c9fb656c231e5a8a1b2a4dda248e2 (patch)
tree9bc847a1c7b327c679c4f817885fb77a4d4e1952
parentc3abe08528e746b1b1c05b9e8718acdebab3f39a (diff)
downloadinitscripts-c319567f426c9fb656c231e5a8a1b2a4dda248e2.tar
initscripts-c319567f426c9fb656c231e5a8a1b2a4dda248e2.tar.gz
initscripts-c319567f426c9fb656c231e5a8a1b2a4dda248e2.tar.bz2
initscripts-c319567f426c9fb656c231e5a8a1b2a4dda248e2.tar.xz
initscripts-c319567f426c9fb656c231e5a8a1b2a4dda248e2.zip
Handle /var/shm
-rw-r--r--initscripts.spec5
-rwxr-xr-xrc.d/rc.sysinit6
2 files changed, 9 insertions, 2 deletions
diff --git a/initscripts.spec b/initscripts.spec
index ffd3c1a7..8a453e88 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -1,6 +1,6 @@
Summary: The inittab file and the /etc/rc.d scripts.
Name: initscripts
-Version: 5.02
+Version: 5.03
Copyright: GPL
Group: System Environment/Base
Release: 1
@@ -246,6 +246,9 @@ rm -rf $RPM_BUILD_ROOT
%ghost %attr(0664,root,utmp) /var/run/utmp
%changelog
+* Tue Mar 21 2000 Bernhard Rosenkraenzer <bero@redhat.com>
+- Mount /var/shm if required (2.3.99, 2.4)
+
* Mon Mar 20 2000 Bill Nottingham <notting@redhat.com>
- don't create resolv.conf 0600
- don't run ps as much (speed issues)
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 5a1c80ce..47f622b4 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -11,7 +11,11 @@ if [ -z "$IN_INITLOG" ]; then
fi
# If we're using devfs, start devfsd now - we need the old device names
-[ -e /dev/.devfsd -a -x /sbin/devfsd ] && /sbin/devfsd
+[ -e /dev/.devfsd -a -x /sbin/devfsd ] && /sbin/devfsd /dev
+
+# Mount shm - ignore errors because the only "error" that can occur is
+# a kernel < 2.3.99 which doesn't require /var/shm
+mount -t shm none /var/shm &>/dev/null || :
# Set the path
PATH=/bin:/sbin:/usr/bin:/usr/sbin