
3 changed files with 5 additions and 27 deletions
@ -1,13 +0,0 @@
@@ -1,13 +0,0 @@
|
||||
# hacky rules to try to try unlocking dm-crypt devs |
||||
# |
||||
# Copyright 2008, Red Hat, Inc. |
||||
# Jeremy Katz <katzj@redhat.com> |
||||
|
||||
|
||||
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" |
@ -1,14 +1,5 @@
@@ -1,14 +1,5 @@
|
||||
#!/bin/sh |
||||
[ -s /cryptroot ] && { |
||||
udevadm control --stop-exec-queue |
||||
while read cryptopts; do |
||||
( exec >/dev/console 2>&1 </dev/console |
||||
set $cryptopts |
||||
[ -b /dev/mapper/$2 ] || /bin/plymouth ask-for-password \ |
||||
--command="/sbin/cryptsetup luksOpen -T1 $cryptopts" |
||||
) |
||||
done </cryptroot |
||||
>/cryptroot |
||||
udevadm control --start-exec-queue |
||||
udevadm settle --timeout=30 |
||||
} |
||||
exec >/dev/console 2>&1 </dev/console |
||||
[ -b /dev/mapper/$2 ] && exit 0 |
||||
/bin/plymouth ask-for-password \ |
||||
--command="/sbin/cryptsetup luksOpen -T1 $1 $2" |
||||
|
Loading…
Reference in new issue