Browse Source
Support having root on LUKS with the password prompting handled by plymouth. This requires ensuring our input is from /dev/console and also requires that we import vol_id info about all block devices rather than ignoring dm devs (which is what the persistent storage rules do by default)master

4 changed files with 19 additions and 5 deletions
@ -0,0 +1,13 @@
@@ -0,0 +1,13 @@
|
||||
# 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" |
||||
|
||||
ENV{ID_FS_TYPE}=="crypto_LUKS", RUN+="/bin/plymouth ask-for-password --command '/sbin/cryptsetup luksOpen $env{DEVNAME} luks-$env{ID_FS_UUID}" |
||||
|
||||
|
||||
LABEL="luks_end" |
Loading…
Reference in new issue