Bug#364332: [Buildd-tools-devel] Bug#364332: exec script 10mount fails if /dev/shm missing

Roger Leigh rleigh at whinlatter.ukfsn.org
Wed Apr 26 17:58:10 UTC 2006


tags 364332 + fixed-upstream pending
thanks

"Steve M. Robbins" <steven.robbins at videotron.ca> writes:

> Perhaps the script 10mount could ensure that mount directories
> exist?

I committed the following changes into SVN.


Regards,
Roger


Index: schroot/setup/10mount
===================================================================
--- schroot/setup/10mount	(revision 554)
+++ schroot/setup/10mount	(working copy)
@@ -11,6 +11,15 @@
     if [ "$AUTH_VERBOSITY" = "verbose" ]; then
 	echo "Mounting $2 on $3"
     fi
+
+    if [ ! -d "$3" ]; then
+	mkdir -p "$3"
+    fi
+    if [ ! -d "$3" ]; then
+	echo "$3 does not exist, and could not be created"
+	exit 1
+    fi
+
     mount $VERBOSE $1 "$2" "$3"
 }
 
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 556)
+++ ChangeLog	(working copy)
@@ -1,5 +1,10 @@
 2006-04-26  Roger Leigh  <rleigh at debian.org>
 
+	* schroot/setup/10mount (do_mount) : Create directories for
+	mounting filesystems onto if they don't exist.
+
+2006-04-26  Roger Leigh  <rleigh at debian.org>
+
 	* po/POTFILES.in: Add schroot/sbuild-format-detail.h
 
 2006-04-26  Roger Leigh  <rleigh at debian.org>


-- 
Roger Leigh
                Printing on GNU/Linux?  http://gutenprint.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20060426/fd9c6501/attachment.pgp


More information about the Buildd-tools-devel mailing list