From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: "Amadeusz Żołnowski" <aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] crypt: Skip /etc/crypttab if not present
Date: Wed, 31 Jul 2013 16:02:32 +0200 [thread overview]
Message-ID: <51F918F8.7080201@redhat.com> (raw)
In-Reply-To: <1374787724-27608-1-git-send-email-aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org>
On 07/25/2013 11:28 PM, Amadeusz Żołnowski wrote:
> Prevents following error message:
>
> I: *** Including module: crypt ***
> /usr/lib/dracut/modules.d/90crypt/module-setup.sh: line 31: /etc/crypttab: No such file or directory
> ---
> modules.d/90crypt/module-setup.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/modules.d/90crypt/module-setup.sh b/modules.d/90crypt/module-setup.sh
> index 639a77f..6b32b6a 100755
> --- a/modules.d/90crypt/module-setup.sh
> +++ b/modules.d/90crypt/module-setup.sh
> @@ -57,7 +57,7 @@ install() {
> inst_hook cleanup 30 "$moddir/crypt-cleanup.sh"
> fi
>
> - if [[ $hostonly ]]; then
> + if [[ $hostonly ]] && [[ -f /etc/cryptab ]]; then
> # filter /etc/crypttab for the devices we need
> while read _mapper _dev _rest; do
> [[ $_mapper = \#* ]] && continue
>
pushed, thanks!
next prev parent reply other threads:[~2013-07-31 14:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-25 21:28 [PATCH] crypt: Skip /etc/crypttab if not present Amadeusz Żołnowski
[not found] ` <1374787724-27608-1-git-send-email-aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org>
2013-07-31 14:02 ` Harald Hoyer [this message]
[not found] ` <51F918F8.7080201-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-08-06 15:25 ` [PATCH] crypt: Fix typo--/etc/crypttab not /etc/cryptab James Lee
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=51F918F8.7080201@redhat.com \
--to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=aidecoe-2qtfh70TtYba5EbDDlwbIw@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