Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Berg <benjamin@sipsolutions.net>
To: kexec@lists.infradead.org
Subject: Re: [PATCH] dracut-module-setup: Fix test for inclusion of DRM modules
Date: Mon, 15 May 2017 15:03:33 +0200	[thread overview]
Message-ID: <1494853413.3608.7.camel@sipsolutions.net> (raw)
In-Reply-To: <20170515113140.12620-1-benjamin@sipsolutions.net>

Sorry, obviously this was meant for the kexec-tools list instead of
this one.

Benjamin

On Mon, 2017-05-15 at 13:31 +0200, Benjamin Berg wrote:
> From: Benjamin Berg <bberg@redhat.com>
> 
> The /sys/modules/*/drivers sysfs entries do not exist anymore on
> newer
> kernels which means that the DRM moduels would never be included.
> Instead check if there is any device with a "drm" sysfs directory to
> decide on whether DRM modules need to be included.
> ---
>  dracut-module-setup.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh
> index 9f88b4e..8495fd9 100755
> --- a/dracut-module-setup.sh
> +++ b/dracut-module-setup.sh
> @@ -20,7 +20,7 @@ check() {
>  depends() {
>      local _dep="base shutdown"
>  
> -    if [ -d /sys/module/drm/drivers ]; then
> +    if [ -n "$( find /sys/devices -name drm )" ]; then
>          _dep="$_dep drm"
>      fi
>  

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

      reply	other threads:[~2017-05-15 13:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-15 11:31 [PATCH] dracut-module-setup: Fix test for inclusion of DRM modules Benjamin Berg
2017-05-15 13:03 ` Benjamin Berg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1494853413.3608.7.camel@sipsolutions.net \
    --to=benjamin@sipsolutions.net \
    --cc=kexec@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox