>
> > +{
> > + local _mntpoint=$(get_mntpoint_from_target $1)
> > +
> > + # mount under /sysroot if dump to root disk or mount under
> > + # /kdumproot/$_mntpoint in other cases in 2nd kernel. systemd
> > + # will be in charge to umount it.
> > + if [ "$_mntpoint" = "/" ];then
> > + _mntpoint="/sysroot"
> > + else
> > + _mntpoint="/kdumproot/$_mntpoint"
> > + fi
>
> I remember we do not depend on root logic like 1st kernel code in
> dracut, that means every fs is equal for kdump initrd. Not sure if it
> is good to just drop /sysroot part, any risk for fadump?
Not sure if things will get wired if failure_option set to dump to
rootfs, and sysroot is a reserved keyword for systemd, maybe it's
better to keep consistent with systemd in case of strange behavior.
Ok, let's leave it as is for the time being.
Thanks
Dave