|
Harald Hoyer |
460d2c |
From 31d0b55b86e7e2a52511621d1253109c05fda6f9 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
460d2c |
From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= <nabijaczleweli@nabijaczleweli.xyz>
|
|
Harald Hoyer |
460d2c |
Date: Thu, 20 Aug 2020 17:36:30 +0200
|
|
Harald Hoyer |
460d2c |
Subject: [PATCH] 95cifs: pass rootflags to mount
|
|
Harald Hoyer |
460d2c |
|
|
Harald Hoyer |
460d2c |
---
|
|
Harald Hoyer |
460d2c |
modules.d/95cifs/cifs-lib.sh | 2 +-
|
|
Harald Hoyer |
460d2c |
modules.d/95cifs/cifsroot.sh | 2 +-
|
|
Harald Hoyer |
460d2c |
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
Harald Hoyer |
460d2c |
|
|
Harald Hoyer |
460d2c |
diff --git a/modules.d/95cifs/cifs-lib.sh b/modules.d/95cifs/cifs-lib.sh
|
|
Harald Hoyer |
460d2c |
index 8e192041..ab51106c 100755
|
|
Harald Hoyer |
460d2c |
--- a/modules.d/95cifs/cifs-lib.sh
|
|
Harald Hoyer |
460d2c |
+++ b/modules.d/95cifs/cifs-lib.sh
|
|
Harald Hoyer |
460d2c |
@@ -30,5 +30,5 @@ cifs_to_var() {
|
|
Harald Hoyer |
460d2c |
if [ ! "$cifsuser" -o ! "$cifspass" ]; then
|
|
Harald Hoyer |
460d2c |
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."
|
|
Harald Hoyer |
460d2c |
fi
|
|
Harald Hoyer |
460d2c |
- options="user=$cifsuser,pass=$cifspass"
|
|
Harald Hoyer |
460d2c |
+ options="user=$cifsuser,pass=$cifspass,$(getarg rootflags=)"
|
|
Harald Hoyer |
460d2c |
}
|
|
Harald Hoyer |
460d2c |
diff --git a/modules.d/95cifs/cifsroot.sh b/modules.d/95cifs/cifsroot.sh
|
|
Harald Hoyer |
460d2c |
index 10f4f3bd..11d362e8 100755
|
|
Harald Hoyer |
460d2c |
--- a/modules.d/95cifs/cifsroot.sh
|
|
Harald Hoyer |
460d2c |
+++ b/modules.d/95cifs/cifsroot.sh
|
|
Harald Hoyer |
460d2c |
@@ -16,7 +16,7 @@ echo server: $server
|
|
Harald Hoyer |
460d2c |
echo path: $path
|
|
Harald Hoyer |
460d2c |
echo options: $options
|
|
Harald Hoyer |
460d2c |
|
|
Harald Hoyer |
460d2c |
-mount.cifs //$server/$path $NEWROOT -o $options && { [ -e /dev/root ] || ln -s null /dev/root ; }
|
|
Harald Hoyer |
460d2c |
+mount.cifs "//$server/$path" "$NEWROOT" -o "$options" && { [ -e /dev/root ] || ln -s null /dev/root ; }
|
|
Harald Hoyer |
460d2c |
|
|
Harald Hoyer |
460d2c |
# inject new exit_if_exists
|
|
Harald Hoyer |
460d2c |
echo 'settle_exit_if_exists="--exit-if-exists=/dev/root"; rm -f -- "$job"' > $hookdir/initqueue/cifs.sh
|
|
Harald Hoyer |
460d2c |
|