forked from pool/os-prober
9f81a3dcf6
- os-prober-btrfsfix-trim-leading-subvol.patch * fix os-prober fails to detect other SLES12 installation (bsc#892364) OBS-URL: https://build.opensuse.org/request/show/307028 OBS-URL: https://build.opensuse.org/package/show/Base:System/os-prober?expand=0&rev=51
14 lines
548 B
Diff
14 lines
548 B
Diff
Index: os-prober/linux-boot-probes/mounted/common/40grub2
|
|
===================================================================
|
|
--- os-prober.orig/linux-boot-probes/mounted/common/40grub2
|
|
+++ os-prober/linux-boot-probes/mounted/common/40grub2
|
|
@@ -16,7 +16,7 @@ found_item=0
|
|
entry_result () {
|
|
if [ "x$type" = "xbtrfs" -a "$rootsv" = "$bootsv" ]; then
|
|
# trim off the leading subvol
|
|
- kernelfile=$(echo "$kernel" | cut -d '/' -f 2- | cut -d '/' -f 2-)
|
|
+ kernelfile=$(echo "$kernel" | sed -e "s!^/${rootsv}/!!")
|
|
else
|
|
kernelfile=$kernel
|
|
fi
|