From: Harald Hoyer Date: Thu, 5 Mar 2009 13:47:00 +0000 (+0100) Subject: make crypt more failsafe X-Git-Tag: 0.1~368 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e548dabcef54756f38fca7f6594cc8d39df6193a;p=thirdparty%2Fdracut.git make crypt more failsafe --- diff --git a/modules.d/90crypt/63-luks.rules b/modules.d/90crypt/63-luks.rules index 6ee8f6b31..802ea062e 100644 --- a/modules.d/90crypt/63-luks.rules +++ b/modules.d/90crypt/63-luks.rules @@ -5,7 +5,7 @@ SUBSYSTEM!="block", GOTO="luks_end" -ACTION!="add", GOTO="luks_end" +ACTION!="add|change", GOTO="luks_end" KERNEL!="sr*", IMPORT{program}="vol_id --export $tempnode" ENV{ID_FS_TYPE}=="crypto_LUKS", RUN+="/bin/sh -c 'echo $env{DEVNAME} luks-$env{ID_FS_UUID} >>/cryptroot'" diff --git a/modules.d/90crypt/cryptroot.sh b/modules.d/90crypt/cryptroot.sh index 20429f1ab..86e3bbfcf 100755 --- a/modules.d/90crypt/cryptroot.sh +++ b/modules.d/90crypt/cryptroot.sh @@ -3,7 +3,8 @@ udevadm control --stop-exec-queue while read cryptopts; do ( exec >/dev/console 2>&1 /cryptroot