Your message dated Mon, 30 Aug 2010 09:31:12 -0400
with message-id <[email protected]>
and subject line closing 458898
has caused the Debian Bug report #458898,
regarding Mount points including spaces are not umounted at shutdown
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
458898: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=458898
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mount
Version: 2.13-8

When a mount point with spaces exists, it is not umounted at shutdown.

I have this line in my fstab:
/mbf/Linked\040Pictures /mbf_employee/Linked\040Pictures none bind 0 0

Then after executing a 'shutdown -h now' I get these messages near
the end of the shutdown procedure:
Unmounting local filesystems...umount2: No such file or directory
umount: /mbf_employee/Linked040Pictures: not found
failed.
Will now halt.

The problem is not with the umount program itself, because if I type
this command at the command line as root:
umount /mbf_employee/Linked\ Pictures
it unmounts just fine.

The problem is in the script /etc/init.d/umountfs because it is
passing wrong arguments to the umount command.

This bug is the same as this Ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/32455
That bugreport contains a patch which I adapted to Debian's
umountfs script. I don't claim that this is the best way to
solve the problem, but it has worked for me so far.

Thanks,
James

--- umountfsorig        2008-01-02 17:25:52.000000000 -0500
+++ umountfs    2008-01-03 08:15:14.000000000 -0500
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 ### BEGIN INIT INFO
 # Provides:          umountfs
 # Required-Start:
@@ -63,7 +63,7 @@
 
        REG_MTPTS=""
        TMPFS_MTPTS=""
-       while read DEV MTPT FSTYPE REST
+       while read -r DEV MTPT FSTYPE REST
        do
                case "$MTPT" in
                  
/|/proc|/dev|/.dev|/dev/pts|/dev/shm|/dev/.static/dev|/proc/*|/sys|/lib/init/rw)
@@ -138,11 +138,17 @@
                if [ "$VERBOSE" = no ]
                then
                        log_action_begin_msg "Unmounting local
                        filesystems"
-                       umount -f -r -d $REG_MTPTS
+                       for ARG in $REG_MTPTS
+                       do
+                               umount -f -r -d "$(printf %b $(echo $ARG
| sed -r 's/(\\[0-7]{3})([0-7])/\1\\06\2/g'))"
+                       done
                        log_action_end_msg $?
                else
                        log_daemon_msg "Will now unmount local
                        filesystems"
-                       umount -f -v -r -d $REG_MTPTS
+                       for ARG in $REG_MTPTS
+                       do
+                               umount -f -r -d "$(printf %b $(echo $ARG
| sed -r 's/(\\[0-7]{3})([0-7])/\1\\06\2/g'))"
+                       done
                        log_end_msg $?
                fi
        fi
-- 
  
  [email protected]

-- 
http://www.fastmail.fm - The way an email service should be




--- End Message ---
--- Begin Message ---
This bug is a duplicate of #415482. Since that bug is already archived,
I couldn't forcemerge the two, so I'm just closing this one.

James Dietrich




--- End Message ---
_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-sysvinit-devel

Reply via email to