From: Victor Lowther Date: Thu, 19 Mar 2009 15:38:22 +0000 (-0500) Subject: Update plymouth to work with running cryptsetup from a udev rule. X-Git-Tag: 0.1~282^2~12^2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5fff86626bbebab50fc117511addc2884c4e0919;p=thirdparty%2Fdracut.git Update plymouth to work with running cryptsetup from a udev rule. --- diff --git a/modules.d/50plymouth/63-luks.rules b/modules.d/50plymouth/63-luks.rules deleted file mode 100644 index 5463139c5..000000000 --- a/modules.d/50plymouth/63-luks.rules +++ /dev/null @@ -1,13 +0,0 @@ -# hacky rules to try to try unlocking dm-crypt devs -# -# Copyright 2008, Red Hat, Inc. -# Jeremy Katz - - -SUBSYSTEM!="block", GOTO="luks_end" -ACTION!="add|change", GOTO="luks_end" - -KERNEL!="sr*", IMPORT{program}="vol_id --export $tempnode" -ENV{ID_FS_TYPE}=="crypto_LUKS", RUN+="plymouth-ask $env{DEVNAME} luks-$env{ID_FS_UUID}" - -LABEL="luks_end" diff --git a/modules.d/50plymouth/cryptroot.sh b/modules.d/50plymouth/cryptroot.sh index afb5f84f8..d2fb43f4e 100755 --- a/modules.d/50plymouth/cryptroot.sh +++ b/modules.d/50plymouth/cryptroot.sh @@ -1,14 +1,5 @@ #!/bin/sh -[ -s /cryptroot ] && { - udevadm control --stop-exec-queue - while read cryptopts; do - ( exec >/dev/console 2>&1 /cryptroot - udevadm control --start-exec-queue - udevadm settle --timeout=30 -} +exec >/dev/console 2>&1