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

Bug#247054: Crypto-root patch updated to initrd-tools 0.1.70



Herbert Xu <herbert@gondor.apana.org.au> - Wed, Jun 09, 2004:

> Excellent.  Thanks for your work on this.

 Patch still applies on current mkinitrd, and I'd appreciate if it could
 be integrated, thanks for your work.

 I've attached a small fix for the patch which miss a * in a regexp.

   Regards,

-- 
Loïc Minier <lool@dooz.org>
--- mkinitrd.patch.orig	2004-08-11 16:35:16.000000000 +0200
+++ mkinitrd.patch	2004-08-11 16:35:53.000000000 +0200
@@ -16,7 +16,7 @@
 +	echo dm-crypt
 +	echo $cipher_mode | cut -d- -f1
 +
-+	devname=$(grep -m 1 "^$dmname[[:space:]]" /etc/crypttab | sed 's/^[^[:space:]]*[[:space:]]\([^[:space:]]*\).*/\1/')
++	devname=$(grep -m 1 "^$dmname[[:space:]]" /etc/crypttab | sed 's/^[^[:space:]]*[[:space:]]*\([^[:space:]]*\).*/\1/')
 +	if [ ! -b ${devname:-/dev/null} ]; then
 +		echo \'$dmname\' does not have a valid block device in /etc/crypttab >&2
 +		exit 1

Reply to: