diff options
Diffstat (limited to 'grub-core/disk/cryptodisk.c')
-rw-r--r-- | grub-core/disk/cryptodisk.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/grub-core/disk/cryptodisk.c b/grub-core/disk/cryptodisk.c index ce755c3..f39c1ab 100644 --- a/grub-core/disk/cryptodisk.c +++ b/grub-core/disk/cryptodisk.c @@ -875,7 +875,10 @@ grub_cryptodisk_scan_device (const char *name, /* Try to open disk. */ source = grub_disk_open (name); if (!source) - return grub_errno; + { + grub_print_error (); + return 0; + } err = grub_cryptodisk_scan_device_real (name, source); |