Hi, Vivek
As we discussed at the meeting yesterday, you brought up the idea about
making emergency.service to "Wants=" and "After="
dracut-iniqueue.service and sysroot.mount.
I tested it today and it worked well. And then I realize why I didn't
do that before. I don't think that's a good idea.
Because we have several default actions and only dump_to_rootfs would
require sysroot.mount. Like you said, start dracut-initqueue and
sysroot.mount might be fragile in a broken systemd boot. If we do that
unconditionally for all the default actions, we might be broken again.
So I'm thinking how about we write a generator to add these dependencies
on the fly according to default actions specified in kdump.conf. With
the dependencies, the stop/start cycle of initqueue and sysroot.mount
can be avoided because systemd would do the isolation without stopping
these two.
Thanks
WANG Chao