On 05/22/14 at 01:30pm, Vivek Goyal wrote:
On Mon, May 19, 2014 at 10:42:20PM +0800, WANG Chao wrote:
[..]
> diff --git a/kdump-lib.sh b/kdump-lib.sh
> index a20c6e8..40b3f94 100755
> --- a/kdump-lib.sh
> +++ b/kdump-lib.sh
> @@ -138,3 +138,166 @@ check_save_path_fs()
> fi
> }
>
> +
> +#
> +# Below functions and variables are meant to be used in 2nd kernel
> +#
> +
How about creating a separate dracut-kdump-lib.sh instead? This will
contains definitions and functions which are meaningful only when
executing inside initramfs.
Things which can be used both in initramfs and outside initramfs context
can continue to live in kdump-lib.sh
And dracut-kdump-lib.sh can include kdump-lib.sh.
Make sense, will change.
Thanks
WANG Chao