Flexibilize mount handling for the DCS device.
authorUlrich Dangel <mru@grml.org>
Sun, 8 Jan 2012 11:05:40 +0000 (12:05 +0100)
committerUlrich Dangel <mru@grml.org>
Sun, 8 Jan 2012 11:05:40 +0000 (12:05 +0100)
This commit allows to specify mount options to be used for mounting the
DCSDEVICE. This can be used to mount devices which need additional/special
mount options.

autoconfig.functions

index 42c03bd..23eee82 100755 (executable)
@@ -1530,7 +1530,7 @@ else
       else
         [ -d $DCSMP ] || mkdir $DCSMP
         umount $DCSMP >>$DEBUG 2>&1 # make sure it is not mounted
-        mount -o ro -t auto $DCSDEVICE  $DCSMP ; RC="$?"
+        mount -o ${MOUNTOPTIONS:-ro} -t ${DCSFS:-auto} $DCSDEVICE  $DCSMP ; RC="$?"
         if [[ $RC == 0 ]]; then
           einfo "Successfully mounted $DCSDEVICE to $DCSMP (readonly)." ; eend 0
         else