[Fedora rawhide][PATCH] mkdumprd: drop mountaddr/mountproto nfs mount options
by Tao Liu
nfs service will append extra mount options to kernel mount options.
Such as mountaddr/mountproto options. These options only represent
current mounting details of the 1st kernel, but may not appropriate
for the 2nd kernel. This patch will remove these options.
Signed-off-by: Tao Liu <ltao(a)redhat.com>
---
mkdumprd | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mkdumprd b/mkdumprd
index c6cb001..d87d588 100644
--- a/mkdumprd
+++ b/mkdumprd
@@ -70,8 +70,8 @@ to_mount()
if [[ $_fstype == "nfs"* ]]; then
_pdev=$_target
- _sed_cmd+='s/,addr=[^,]*//;'
- _sed_cmd+='s/,proto=[^,]*//;'
+ _sed_cmd+='s/,\(mount\)\?addr=[^,]*//g;'
+ _sed_cmd+='s/,\(mount\)\?proto=[^,]*//g;'
_sed_cmd+='s/,clientaddr=[^,]*//;'
else
# for non-nfs _target converting to use udev persistent name
--
2.29.2
2 years, 5 months