tags 364332 + fixed-upstream pending
thanks

"Steve M. Robbins" <[EMAIL PROTECTED]> 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  <[EMAIL PROTECTED]>
 
+       * schroot/setup/10mount (do_mount) : Create directories for
+       mounting filesystems onto if they don't exist.
+
+2006-04-26  Roger Leigh  <[EMAIL PROTECTED]>
+
        * po/POTFILES.in: Add schroot/sbuild-format-detail.h
 
 2006-04-26  Roger Leigh  <[EMAIL PROTECTED]>


-- 
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.

Attachment: pgpsBlCaQ2hTN.pgp
Description: PGP signature

Reply via email to