90crypt: recognize .img as loop key container

master
Leho Kraav 2012-07-24 15:08:51 +03:00 committed by Harald Hoyer
parent c072e13162
commit 3e9b4330a9
1 changed files with 8 additions and 0 deletions

View File

@ -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