On Tue, Apr 08, 2014 at 01:15:26PM +0800, WANG Chao wrote:
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>
I think we should take this patch in while Chao is working on sorting out
error handling path.
With this patch we should be able to dump to non-root file systems. What
will be broken temporarily is "default" action handling.
Soon chao's patches should be in to fix default action handling.
Acked-by: Vivek Goyal <vgoyal(a)redhat.com>
Thanks
Vivek
---
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
_______________________________________________
kexec mailing list
kexec(a)lists.fedoraproject.org
https://lists.fedoraproject.org/mailman/listinfo/kexec