From: Leho Kraav Date: Tue, 24 Jul 2012 12:08:51 +0000 (+0300) Subject: 90crypt: recognize .img as loop key container X-Git-Tag: 023~107 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e9b4330a98687fe8b1f50c122bb30c42c4413ae;p=thirdparty%2Fdracut.git 90crypt: recognize .img as loop key container --- diff --git a/modules.d/90crypt/crypt-lib.sh b/modules.d/90crypt/crypt-lib.sh index 5d0b27213..3aed84df0 100755 --- a/modules.d/90crypt/crypt-lib.sh +++ b/modules.d/90crypt/crypt-lib.sh @@ -177,6 +177,14 @@ readkey() { die "No GPG support to decrypt '$keypath' on '$keydev'." fi ;; + img) + if [ -f /lib/dracut-crypt-loop-lib.sh ]; then + . /lib/dracut-crypt-loop-lib.sh + loop_decrypt "$mntp" "$keypath" "$keydev" "$device" + else + die "No loop file support to decrypt '$keypath' on '$keydev'." + fi + ;; *) cat "$mntp/$keypath" ;; esac