initramfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: olivier.lahaye1-GANU6spQydw@public.gmane.org
To: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: dracut bad --local description in usage():
Date: Fri, 24 Mar 2017 18:39:35 +0100 (CET)	[thread overview]
Message-ID: <2127270698.12904490.1490377175151.JavaMail.root@spooler6-g27.priv.proxad.net> (raw)
In-Reply-To: <1651923156.12869058.1490376629695.JavaMail.root-NPLbsSYf/7dsFmKuirFwRhh1pbbyJDp15NbjCUgZEJk@public.gmane.org>


Hi, 

--local is badly described. it states that when specified, modules will be searched for in current directory which is by far incomplete, missleading / wrong. 
When using this option, $dracutbasedir is set to current directory if (depending on version) dracut-init.sh (recent version) or dracut-functions (old version) is found. 
This means thatn not ONLY modules, BUT ALSO lib functions are searched in local directory. 
Thus, using the --local option will be ignored if the correct files (that are not modules) are not found in current working directory. 
Also modules are not searched in current directory but in ./modules.d/ sub directory. 

Whatever it is designed like this for technical reasons or even if it's a bug, the --local option description is wrong from old versions (CentOS-6 at least) to latest versions (fedora-25) and does absolutely not reflect the dracut behavior when --local option is used. 

Regards, 

-- 
   Olivier LAHAYE

           reply	other threads:[~2017-03-24 17:39 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1651923156.12869058.1490376629695.JavaMail.root-NPLbsSYf/7dsFmKuirFwRhh1pbbyJDp15NbjCUgZEJk@public.gmane.org>]

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=2127270698.12904490.1490377175151.JavaMail.root@spooler6-g27.priv.proxad.net \
    --to=olivier.lahaye1-ganu6spqydw@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).