]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
95cifs: pass rootflags to mount
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Thu, 20 Aug 2020 15:36:30 +0000 (17:36 +0200)
committerDaniel Molkentin <daniel@molkentin.de>
Fri, 21 Aug 2020 13:24:58 +0000 (15:24 +0200)
modules.d/95cifs/cifs-lib.sh
modules.d/95cifs/cifsroot.sh

index 8e192041f58779740ed94571b88b0cb409a24c81..ab51106c85d2d1f4d93bde22bf3e01a8ac27f5d3 100755 (executable)
@@ -30,5 +30,5 @@ cifs_to_var() {
     if [ ! "$cifsuser" -o ! "$cifspass" ]; then
        die "For CIFS support you need to specify a cifsuser and cifspass either in the cifsuser and cifspass commandline parameters or in the root= CIFS URL."
     fi
-    options="user=$cifsuser,pass=$cifspass"
+    options="user=$cifsuser,pass=$cifspass,$(getarg rootflags=)"
 }
index 10f4f3bd24c4c1ceeeb2646df5a46db42be53f46..11d362e8e7e6dfe5ac273971b177772ea7e54cd1 100755 (executable)
@@ -16,7 +16,7 @@ echo server: $server
 echo path: $path
 echo options: $options
 
-mount.cifs //$server/$path $NEWROOT -o $options && { [ -e /dev/root ] || ln -s null /dev/root ; }
+mount.cifs "//$server/$path" "$NEWROOT" -o "$options" && { [ -e /dev/root ] || ln -s null /dev/root ; }
 
 # inject new exit_if_exists
 echo 'settle_exit_if_exists="--exit-if-exists=/dev/root"; rm -f -- "$job"' > $hookdir/initqueue/cifs.sh