On 07/01/2020 10:57 AM, Dave Young wrote:
On 06/30/20 at 11:05am, Pingfan Liu wrote:
> The following false alarm can be observed:
> /etc/kdump/pre.d/* is not executable
> Suppress it.
I'm confused about the log, not sure why it is false alarm.
May need explain it a bit more..
Suppose that /etc/kdump/pre.d/ is a empty
directory, the
kdump_install_pre_post_conf() will complain "/etc/kdump/pre.d/* is not
executable"
And even if there are some executable scripts in /etc/kdump/pre.d/,
kdump_install_pre_post_conf() will complain "/etc/kdump/pre.d/* is not
executable" too.
Thanks,
Pingfan
>
> Signed-off-by: Pingfan Liu <piliu(a)redhat.com>
> ---
> dracut-module-setup.sh | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh
> index 2454463..fbbd21a 100755
> --- a/dracut-module-setup.sh
> +++ b/dracut-module-setup.sh
> @@ -419,7 +419,7 @@ kdump_install_pre_post_conf() {
> for file in /etc/kdump/pre.d/*; do
> if [ -x "$file" ]; then
> dracut_install $file
> - else
> + elif [ $file != "/etc/kdump/pre.d/*" ]; then
Do not get the purpose of above check :(
> echo "$file is not executable"
> fi
> done
> @@ -429,7 +429,7 @@ kdump_install_pre_post_conf() {
> for file in /etc/kdump/post.d/*; do
> if [ -x "$file" ]; then
> dracut_install $file
> - else
> + elif [ $file != "/etc/kdump/post.d/*" ]; then
> echo "$file is not executable"
> fi
> done
> --
> 2.7.5
> _______________________________________________
> kexec mailing list -- kexec(a)lists.fedoraproject.org
> To unsubscribe send an email to kexec-leave(a)lists.fedoraproject.org
> Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
https://lists.fedoraproject.org/archives/list/kexec@lists.fedoraproject.org
Thanks
Dave