On 08/16/13 at 02:13pm, WANG Chao wrote:
Currently we have two issues against mounting filesystems by
1. If any failure in sysroot.mount, initrd.target won't be reached.
2. If any failure in mounting /etc/fstab, initrd.target won't be reached
Our kdump.sh is in dracut-pre-pivot hook which is ordered after
initrd.target. That means if systemd doesn't reach initrd.target,
pre-pivot service will not run.
To fix issue 1), we can add rootflags=nofail to 2nd kernel cmdline, so
that initrd.target will not require sysroot.mount. initrd.target
wouldn't care about the failures in sysroot.mount. And our kdump.sh will
To fix issue 2), we can add rd.fstab=0. With this specified in kernel
cmdline, systemd won't mount anything from /etc/fstab so that
initrd.target won't have a dependency on the mount unit. Instead a
dracut module 95fstab-sys, will install 00-mount-sys.sh to pre-pivot
hook. 00-mount-sys.sh will mount everything from /etc/fstab and even if
it fails to mount, kdump will run.
Signed-off-by: WANG Chao <chaowang(a)redhat.com>
Please ignore this patch. As discussed, we will use systemd to mount
from /etc/fstab. I'll send another patch to address this issue.