[Pkg-sysvinit-devel] Bug#415482: initscripts: fails to umount mountpoints with spaces

Mourad De Clerck debian-bugs at aquazul.com
Thu Mar 6 00:03:50 UTC 2008


tag 415482 patch
thanks

I have the same issue, with drives that are labelled "External HD" and
are mounted automatically by gnome-volume-manager.

My solution is not very pretty, but it works for me - see attach.

Thanks,

-- M

-------------- next part --------------
--- umountfs.orig	2008-01-08 00:20:33.000000000 +0100
+++ umountfs	2008-02-22 07:26:52.000000000 +0100
@@ -138,11 +138,17 @@
 		if [ "$VERBOSE" = no ]
 		then
 			log_action_begin_msg "Unmounting local filesystems"
-			umount -f -r -d $REG_MTPTS
+			for MTPT in $REG_MTPTS
+			do
+				umount -f -r -d "`echo $MTPT | sed 's/\\040/\ /'`"
+			done
 			log_action_end_msg $?
 		else
 			log_daemon_msg "Will now unmount local filesystems"
-			umount -f -v -r -d $REG_MTPTS
+			for MTPT in $REG_MTPTS
+			do
+				umount -f -v -r -d "`echo $MTPT | sed 's/\\040/\ /'`"
+			done
 			log_end_msg $?
 		fi
 	fi


More information about the Pkg-sysvinit-devel mailing list