SHA256
1
0
forked from pool/os-prober
os-prober/os-prober-btrfsfix-trim-leading-subvol.patch
Andrei Borzenkov 9f81a3dcf6 Accepting request 307028 from home:michael-chang:bsc892364
- 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
2015-05-14 17:32:30 +00:00

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