From e548dabcef54756f38fca7f6594cc8d39df6193a Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 5 Mar 2009 14:47:00 +0100 Subject: [PATCH] make crypt more failsafe --- modules.d/90crypt/63-luks.rules | 2 +- modules.d/90crypt/cryptroot.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules.d/90crypt/63-luks.rules b/modules.d/90crypt/63-luks.rules index 6ee8f6b..802ea06 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 20429f1..86e3bbf 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 -- 2.7.4