Blame SOURCES/0020-Add-debian-ubuntu-vmlinux-location-to-default-search.patch

acf3ec
From 931ea86070e9b56bf698ae3a4f20647d42325d6d Mon Sep 17 00:00:00 2001
acf3ec
From: "Chunguang.Xu" <chunguang.xu@shopee.com>
acf3ec
Date: Thu, 25 Aug 2022 12:07:20 +0800
acf3ec
Subject: [PATCH 20/28] Add debian/ubuntu vmlinux location to default search
acf3ec
 dirs
acf3ec
acf3ec
Now crash cannot find debian/ubuntu kernel vmlinux, we need to
acf3ec
explicitly specify the path to vmlinux. Try to add the debian
acf3ec
vmlinux location to default search directories.
acf3ec
acf3ec
Signed-off-by: Chunguang Xu <chunguang.xu@shopee.com>
acf3ec
Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
acf3ec
---
acf3ec
 filesys.c | 3 ++-
acf3ec
 1 file changed, 2 insertions(+), 1 deletion(-)
acf3ec
acf3ec
diff --git a/filesys.c b/filesys.c
acf3ec
index a863f04eb250..c2ea78de821d 100644
acf3ec
--- a/filesys.c
acf3ec
+++ b/filesys.c
acf3ec
@@ -319,7 +319,7 @@ match_proc_version(void)
acf3ec
 
acf3ec
 #define CREATE  1
acf3ec
 #define DESTROY 0
acf3ec
-#define DEFAULT_SEARCHDIRS 5
acf3ec
+#define DEFAULT_SEARCHDIRS 6
acf3ec
 #define EXTRA_SEARCHDIRS 5
acf3ec
 
acf3ec
 static char **
acf3ec
@@ -336,6 +336,7 @@ build_searchdirs(int create, int *preferred)
acf3ec
         	"/boot/",
acf3ec
 	        "/boot/efi/redhat",
acf3ec
 		"/boot/efi/EFI/redhat",
acf3ec
+		"/usr/lib/debug/boot/",
acf3ec
         	"/",
acf3ec
         	NULL
acf3ec
 	};
acf3ec
-- 
acf3ec
2.37.1
acf3ec