nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0381-grub-core-commands-nativedisk.c-Ignore-unknown-files.patch

f96e0b
From 08f12738be24a89a9724e65c7244008d192ea297 Mon Sep 17 00:00:00 2001
f96e0b
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
f96e0b
Date: Sun, 28 Apr 2013 18:52:53 +0200
f96e0b
Subject: [PATCH 381/482] 	* grub-core/commands/nativedisk.c: Ignore
f96e0b
 unknown filesystem error.
f96e0b
f96e0b
---
f96e0b
 ChangeLog                       | 4 ++++
f96e0b
 grub-core/commands/nativedisk.c | 2 ++
f96e0b
 2 files changed, 6 insertions(+)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index 69c7839..4833670 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,5 +1,9 @@
f96e0b
 2013-04-28  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 
f96e0b
+	* grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
f96e0b
+
f96e0b
+2013-04-28  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
+
f96e0b
 	New command `nativedisk'.
f96e0b
 
f96e0b
 2013-04-28  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
diff --git a/grub-core/commands/nativedisk.c b/grub-core/commands/nativedisk.c
f96e0b
index adb4043..333fc82 100644
f96e0b
--- a/grub-core/commands/nativedisk.c
f96e0b
+++ b/grub-core/commands/nativedisk.c
f96e0b
@@ -79,6 +79,8 @@ iterate_device (const char *name, void *data)
f96e0b
 
f96e0b
   if (get_uuid (name, &cur_uuid))
f96e0b
     {
f96e0b
+      if (grub_errno == GRUB_ERR_UNKNOWN_FS)
f96e0b
+	grub_errno = 0;
f96e0b
       grub_print_error ();
f96e0b
       return 0;
f96e0b
     }
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b