do not emit cryptomount without crypto UUID

This commit is contained in:
Andrei Borzenkov 2015-03-28 22:13:35 +03:00
parent 7d39938474
commit 12bf557039

View file

@ -145,7 +145,7 @@ prepare_grub_to_access_device ()
done done
if [ x$GRUB_ENABLE_CRYPTODISK = xy ]; then if [ x$GRUB_ENABLE_CRYPTODISK = xy ]; then
for uuid in "`"${grub_probe}" --device $@ --target=cryptodisk_uuid`"; do for uuid in `"${grub_probe}" --device $@ --target=cryptodisk_uuid`; do
echo "cryptomount -u $uuid" echo "cryptomount -u $uuid"
done done
fi fi