In current systemd implementation, nofail mount will not block
local-fs.target, which means our kdump.sh (in dracut-pre-pivot.service)
can't wait for nofail mount. And kdump.sh could run early than nofail
mount happens.
For short term, let's stop passing nofail to mount. As for
sysroot.mount, since we have explicitly specify to wait for it, "nofail"
isn't a problem.
Signed-off-by: WANG Chao <chaowang(a)redhat.com>
---
mkdumprd | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mkdumprd b/mkdumprd
index 84f1e18..6e9dc47 100644
--- a/mkdumprd
+++ b/mkdumprd
@@ -103,7 +103,9 @@ to_mount() {
_t=$(findmnt -k -f -n -r -o TARGET,FSTYPE $_dev)
_o=$(findmnt -k -f -n -r -o OPTIONS $_dev)
_o=${_o/#ro/rw} #mount fs target as rw in 2nd kernel
- _o="${_o},nofail" #with nofail set, systemd won't block for mount
failure
+ # "nofail" mount could be run later than kdump.sh. So we don't pass
nofail
+ # for short term.
+ #_o="${_o},nofail" #with nofail set, systemd won't block for mount
failure
_mntopts="$_t $_o"
#for non-nfs _dev converting to use udev persistent name
if [ -b "$_s" ]; then
--
1.8.5.3
Show replies by date