From 3f81fd7097ec931ebf6d862622e6d81834483dbb Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 28 Jan 2021 00:37:32 +0000 Subject: sys-boot/os-prober : shamelessly take all the patches from openSUSE Factory to make it work --- sys-boot/os-prober/files/os-prober-05efi-blkid.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 sys-boot/os-prober/files/os-prober-05efi-blkid.patch (limited to 'sys-boot/os-prober/files/os-prober-05efi-blkid.patch') diff --git a/sys-boot/os-prober/files/os-prober-05efi-blkid.patch b/sys-boot/os-prober/files/os-prober-05efi-blkid.patch new file mode 100644 index 00000000..d8a7113d --- /dev/null +++ b/sys-boot/os-prober/files/os-prober-05efi-blkid.patch @@ -0,0 +1,18 @@ +Index: os-prober/os-probes/mounted/x86/05efi +=================================================================== +--- os-prober.orig/os-probes/mounted/x86/05efi ++++ os-prober/os-probes/mounted/x86/05efi +@@ -46,6 +46,13 @@ if type udevinfo > /dev/null 2>&1; then + fi + fi + ++ # udev may not work in chroot as its db may not be there, bailout that by blkid (bsc#1076779) ++ if [ -z "$ID_PART_ENTRY_TYPE" -a -z "$ID_PART_ENTRY_SCHEME" ] && ++ type blkid > /dev/null 2>&1; then ++ debug "fallback to blkid" ++ eval "$(blkid -p -o udev "$partition" | grep -E '^(ID_PART_ENTRY_(TYPE|SCHEME))=')" ++ fi ++ + debug "$partition partition scheme is $ID_PART_ENTRY_SCHEME" + debug "$partition partition type is $ID_PART_ENTRY_TYPE" + -- cgit v1.2.3