[Pkg-sysvinit-devel] Bug#481546: initscripts: umountfs fails to unmount /var with RAM*
Jörg Sommer
joerg at alea.gnuu.de
Fri May 16 14:12:44 UTC 2008
Package: initscripts
Version: 2.86.ds1-56
Severity: normal
Tags: patch
Hi,
I've a separate partition for /var and I've set RAMLOCK and RAMRUN. The
umountfs script excludes the mountpoints /var/run and /var/lock which
causes /var is not unmountable. I'm using this patch to solve the
problem:
diff --git a/init.d/umountfs b/init.d/umountfs
index 28ec162..0d2a1f8 100755
--- a/init.d/umountfs
+++ b/init.d/umountfs
@@ -100,6 +100,12 @@ do_stop () {
# swap, to avoid running out of memory if the tmpfs filesystems
# use a lot of space.
#
+ if [ yes = "$RAMRUN" ] ; then
+ TMPFS_MTPTS="$TMPFS_MTPTS /var/run"
+ fi
+ if [ yes = "$RAMLOCK" ] ; then
+ TMPFS_MTPTS="$TMPFS_MTPTS /var/lock"
+ fi
if [ "$TMPFS_MTPTS" ]
then
TMPFS_MTPTS="$(pioodl $TMPFS_MTPTS)"
Bye, Jörg.
-- System Information:
Debian Release: unstable/experimental
APT prefers unstable
APT policy: (900, 'unstable'), (700, 'experimental')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.26-rc1-test-209ec4d
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages initscripts depends on:
ii debianutils 2.28.6 Miscellaneous utilities specific t
ii e2fsprogs 1.40.8-2 ext2 file system utilities and lib
ii libc6 2.7-11 GNU C Library: Shared libraries
ii lsb-base 3.2-12 Linux Standard Base 3.2 init scrip
ii mount 2.13.1.1-1 Tools for mounting and manipulatin
ii sysvinit-utils 2.86.ds1-56 System-V-like utilities
Versions of packages initscripts recommends:
ii psmisc 22.6-1 Utilities that use the proc filesy
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature http://en.wikipedia.org/wiki/OpenPGP
Url : http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20080516/b6992835/attachment.pgp
More information about the Pkg-sysvinit-devel
mailing list