On 07/23/15 at 04:47pm, Dave Young wrote:
On 07/22/15 at 06:20pm, Minfei Huang wrote:
> Since get_persistent_dev is called in dracut-module-setup.sh and
> mkdumprd, we move this lib from mkdumprd to kdump-lib.sh. Thus
> dracut-module-setup.sh can use this lib, not the function in dracut.sh.
>
> Copy the function get_persistent_dev from dracut to make the function
> consistent.
Cleanup means drop get_presistent_dev function and use dracut one instead
of moving it to another file...
Hi, Dave.
Try the way which you points out. It seems difficult to source the
dracut-functions.sh into mkdumprd, because there are several variants
which are defined in dracut.sh, such as initdir. In the other hand,
dracut-functions.sh will source the dracut-logger.sh and other file.
So it is complicatable to source the dracut-functions.sh, instead of
defining the common lib functions in kdump-lib.sh.
Bao.
Do you have any idea about this?
Thanks
Minfei