mirror of
https://github.com/dracutdevs/dracut.git
synced 2024-10-28 02:25:18 +03:00
580ea15dee
The reason this works is that inst will refuse to overwrite a file that already exists. We jsut make plymouth's code to ask for a password have the same name as 90crypt's password asking script, and it will override 90crypt's script while leaving everything else intact.
14 lines
361 B
Plaintext
14 lines
361 B
Plaintext
# 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"
|