grub2/0152-grub-core-disk-cryptodisk.c-grub_cryptodisk_scan_dev.patch
Peter Jones f74b50e380 Rebase to upstream, fix a pile of bugs. The usual.
Signed-off-by: Peter Jones <pjones@redhat.com>
2013-06-12 15:37:08 -04:00

44 lines
1.2 KiB
Diff

From 9f9f731f87ebef9d95f9065a2bf0ae6f22b57d74 Mon Sep 17 00:00:00 2001
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Date: Mon, 4 Feb 2013 15:36:03 +0100
Subject: [PATCH 152/482] * grub-core/disk/cryptodisk.c
(grub_cryptodisk_scan_device): Don't stop on first error.
---
ChangeLog | 5 +++++
grub-core/disk/cryptodisk.c | 5 ++++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index f5396fe..0994ee7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
+ on first error.
+
2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
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);
--
1.8.2.1