bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in util/gnub.d/30_os-prober.in


From: Артём Васелюк
Subject: Bug in util/gnub.d/30_os-prober.in
Date: Sat, 12 Jun 2021 01:44:21 +0300

Hello,
I have noticed a possible bug in the file /util/grub.d/30_os-prober.in. The file is located here https://git.savannah.gnu.org/cgit/grub.git/tree/util/grub.d/30_os-prober.in

The 125 line
```
EXPUUID="${EXPUUID}@${DEVICE#*@}"
```
should be changed to
```
EXPUUID="${EXPUUID}@${DEVICE%@*}"
```

I have two OSs on my laptop. The output of os-prober is
```
/dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
/dev/nvme0n1p5:Manjaro Linux (21.0.5):ManjaroLinux:linux
```
The value of ${DEVICE#*@} is "/efi/Microsoft/Boot/bootmgfw.efi". I think it should be "/dev/nvme0n1p1"

Also look on the lines 182 and 183
EFIPATH=${DEVICE#*@}
DEVICE=${DEVICE%@*}
Thanks for your attention. Ask me if you need
Artem Vessellook



reply via email to

[Prev in Thread] Current Thread [Next in Thread]