Fix grub2-probe issue with previous commit
Resolves: #2165136 Signed-off-by: Robbie Harwood <rharwood@redhat.com>
This commit is contained in:
parent
3ce59ed7e1
commit
f8f88e1235
@ -48,14 +48,14 @@ Signed-off-by: Robbie Harwood <rharwood@redhat.com>
|
|||||||
3 files changed, 12 insertions(+), 1 deletion(-)
|
3 files changed, 12 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/grub-core/disk/diskfilter.c b/grub-core/disk/diskfilter.c
|
diff --git a/grub-core/disk/diskfilter.c b/grub-core/disk/diskfilter.c
|
||||||
index 7cdffe3ebd..27fbca903f 100644
|
index 7cdffe3ebd..68c836fc64 100644
|
||||||
--- a/grub-core/disk/diskfilter.c
|
--- a/grub-core/disk/diskfilter.c
|
||||||
+++ b/grub-core/disk/diskfilter.c
|
+++ b/grub-core/disk/diskfilter.c
|
||||||
@@ -139,6 +139,12 @@ scan_disk_partition_iter (grub_disk_t disk, grub_partition_t p, void *data)
|
@@ -139,6 +139,12 @@ scan_disk_partition_iter (grub_disk_t disk, grub_partition_t p, void *data)
|
||||||
grub_util_info ("Scanning for DISKFILTER devices on disk %s", name);
|
grub_util_info ("Scanning for DISKFILTER devices on disk %s", name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
+ if (p->parent == NULL || p->parent->len == 0)
|
+ if (p != NULL && (p->parent == NULL || p->parent->len == 0))
|
||||||
+ {
|
+ {
|
||||||
+ grub_dprintf ("diskfilter", "skipping %s due to unknown parent partition length", name);
|
+ grub_dprintf ("diskfilter", "skipping %s due to unknown parent partition length", name);
|
||||||
+ return 0;
|
+ return 0;
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
Name: grub2
|
Name: grub2
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.06
|
Version: 2.06
|
||||||
Release: 77%{?dist}
|
Release: 78%{?dist}
|
||||||
Summary: Bootloader with support for Linux, Multiboot and more
|
Summary: Bootloader with support for Linux, Multiboot and more
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: http://www.gnu.org/software/grub/
|
URL: http://www.gnu.org/software/grub/
|
||||||
@ -544,6 +544,10 @@ mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 27 2023 Robbie Harwood <rharwood@redhat.com> - 2.06-78
|
||||||
|
- Fix grub2-probe issue with previous commit
|
||||||
|
- Resolves: #2165136
|
||||||
|
|
||||||
* Fri Jan 27 2023 Robbie Harwood <rharwood@redhat.com> - 2.06-77
|
* Fri Jan 27 2023 Robbie Harwood <rharwood@redhat.com> - 2.06-77
|
||||||
- ppc64le: update signed media fixes
|
- ppc64le: update signed media fixes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user