mkinitrd unification across distributions
 help / color / mirror / Atom feed
From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Mr Dash Four <mr.dash.four-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
Cc: initramfs <initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: crypt-cleanup.sh question
Date: Wed, 27 Oct 2010 15:37:15 +0200	[thread overview]
Message-ID: <4CC82B0B.30208@redhat.com> (raw)
In-Reply-To: <4CC82652.3090500-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>

On 10/27/2010 03:17 PM, Mr Dash Four wrote:
>
>> Hmm, maybe this could do it:
>>
>>
>> diff --git a/modules.d/90crypt/crypt-cleanup.sh
>> b/modules.d/90crypt/crypt-cleanup.sh
>> index e9fc6ba..4722425 100755
>> --- a/modules.d/90crypt/crypt-cleanup.sh
>> +++ b/modules.d/90crypt/crypt-cleanup.sh
>> @@ -4,6 +4,11 @@
>> # close everything which is not busy
>> rm -f /etc/udev/rules.d/70-luks.rules >/dev/null 2>&1
>>
>> +if getargs rd_LUKS_UUID || getarg rd_NO_LUKS; then
>> + # do not clean up, if we did not autoassemble
>> + exit 0
>> +fi
>> +
>> while true; do
>> local do_break="y"
>> for i in /dev/mapper/luks-*; do
> That is good, but I have a better idea (currently implementing it - will post
> the patch later today) - keep open only the partitions specified via
> rd_LUKS_UUID and close everything else. Close everything if rd_NO_LUKS is used
> (there shouldn't be any LUKS partitions open if that parameter was used, but you
> can't be too careful!). How's that?
>
> On a side note: I thought rd_LUKS_UUID, rd_LUKS_KEYPATH, rd_LUKS_KEYDEV and
> rd_NO_LUKS are sort of 'deprecated' in favour of the new rd.luks.* format - is
> that not the case?

yes, they will be.

> Another query - is there any particular reason why all rd_LUKS_UUID need to be
> mapped to luks-UUID? I'd rather be able to choose a more meaningful name than
> the 'standard' luks-UUID - just a thought.

hmm, yes/no... I like meaningful symlinks :)

  parent reply	other threads:[~2010-10-27 13:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-26 12:11 crypt-cleanup.sh question Mr Dash Four
     [not found] ` <4CC6C571.8010406-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2010-10-26 14:37   ` Mr Dash Four
     [not found]     ` <4CC7F15C.7090600@redhat.com>
     [not found]       ` <4CC7F15C.7090600-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-10-27 12:07         ` Mr Dash Four
     [not found]           ` <4CC815E4.4060705-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2010-10-27 13:08             ` Harald Hoyer
     [not found]               ` <4CC82448.80403-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-10-27 13:17                 ` Mr Dash Four
     [not found]                   ` <4CC82652.3090500-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2010-10-27 13:37                     ` Harald Hoyer [this message]
     [not found]                       ` <4CC82B0B.30208-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-10-27 14:16                         ` Mr Dash Four
     [not found]                           ` <4CC83425.2010706-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2010-10-27 14:27                             ` Amadeusz Żołnowski
2010-10-27 15:08                             ` Harald Hoyer

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=4CC82B0B.30208@redhat.com \
    --to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mr.dash.four-gM/Ye1E23mwN+BqQ9rBEUg@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