Re: crypt-cleanup.sh question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 :)
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux