From: наб Date: Thu, 20 Aug 2020 15:36:30 +0000 (+0200) Subject: 95cifs: pass rootflags to mount X-Git-Tag: 051~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31d0b55b86e7e2a52511621d1253109c05fda6f9;p=thirdparty%2Fdracut.git 95cifs: pass rootflags to mount --- diff --git a/modules.d/95cifs/cifs-lib.sh b/modules.d/95cifs/cifs-lib.sh index 8e192041f..ab51106c8 100755 --- a/modules.d/95cifs/cifs-lib.sh +++ b/modules.d/95cifs/cifs-lib.sh @@ -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=)" } diff --git a/modules.d/95cifs/cifsroot.sh b/modules.d/95cifs/cifsroot.sh index 10f4f3bd2..11d362e8e 100755 --- a/modules.d/95cifs/cifsroot.sh +++ b/modules.d/95cifs/cifsroot.sh @@ -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