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

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