diff options
author | librewish | 2021-09-12 20:30:34 +0530 |
---|---|---|
committer | librewish | 2021-09-12 20:30:34 +0530 |
commit | 752ceb29fd23a6c4cffbca9f65adad1cb53f4872 (patch) | |
tree | a41fd50e983356d81f724b91463f8855bae07d9a /os-prober-05efi-blkid.patch | |
parent | 5271f23d8ac140f2db82697b645c38a41ccc78ac (diff) | |
download | aur-752ceb29fd23a6c4cffbca9f65adad1cb53f4872.tar.gz |
add patches from opensuse
Diffstat (limited to 'os-prober-05efi-blkid.patch')
-rw-r--r-- | os-prober-05efi-blkid.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/os-prober-05efi-blkid.patch b/os-prober-05efi-blkid.patch new file mode 100644 index 000000000000..be8a6677870d --- /dev/null +++ b/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" + |