Adjusting mount calls when using nfs options (Closes: #667435).
authorDaniel Baumann <daniel@debian.org>
Wed, 4 Apr 2012 08:50:11 +0000 (10:50 +0200)
committerDaniel Baumann <daniel@debian.org>
Wed, 4 Apr 2012 08:50:11 +0000 (10:50 +0200)
scripts/live

index 494abc7..84924c9 100755 (executable)
@@ -988,9 +988,9 @@ do_nfsmount ()
 
        modprobe -q nfs
 
-       if [ -z "${NFSOPTS}" ]
+       if [ -n "${NFSOPTS}" ]
        then
-               NFSOPTS=""
+               NFSOPTS="-o ${NFSOPTS}"
        fi
 
        log_begin_msg "Trying nfsmount -o nolock -o ro ${NFSOPTS} ${NFSROOT} ${mountpoint}"
@@ -1017,7 +1017,7 @@ do_cifsmount ()
                then
                        CIFSOPTS="-ouser=root,password="
                else
-                       CIFSOPTS="${NFSOPTS}"
+                       CIFSOPTS="-o ${NFSOPTS}"
                fi
 
                log_begin_msg "Trying mount.cifs ${NFSROOT} ${mountpoint} ${CIFSOPTS}"