Browse Source

90crypt: recognize .img as loop key container

master
Leho Kraav 13 years ago committed by Harald Hoyer
parent
commit
3e9b4330a9
  1. 8
      modules.d/90crypt/crypt-lib.sh

8
modules.d/90crypt/crypt-lib.sh

@ -177,6 +177,14 @@ readkey() {
die "No GPG support to decrypt '$keypath' on '$keydev'." die "No GPG support to decrypt '$keypath' on '$keydev'."
fi 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" ;; *) cat "$mntp/$keypath" ;;
esac esac



Loading…
Cancel
Save