Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#78994 - [grub] [os-prober] grub-mkconfig does not detect other bootable partitions

Attached to Project: Arch Linux
Opened by jb (jb.1234abcd) - Wednesday, 05 July 2023, 16:44 GMT
Last edited by Toolybird (Toolybird) - Thursday, 06 July 2023, 22:41 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Christian Hesse (eworm)
Levente Polyak (anthraxx)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
grub-2:2.06.r591.g6425c12cd-1 does not detect other bootable partitions with os-prober or 40_custom (menuentry).
Fallback to grub-2:2.06.r566.g857af0e17-1 works.

Additional info:
* package version(s)
grub-2:2.06.r591.g6425c12cd-1
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
Update to latest grub.
grub-install ...
grub-mkconfig -o /boot/grub/grub.cfg
This task depends upon

Closed by  Toolybird (Toolybird)
Thursday, 06 July 2023, 22:41 GMT
Reason for closing:  Not a bug
Additional comments about closing:  See comments
Comment by Toolybird (Toolybird) - Thursday, 06 July 2023, 00:08 GMT
> does not detect other bootable partitions with os-prober

os-prober is not part of grub, although it appears to use "grub-mount" which *is* a part of grub. Latest grub switched to fuse3 (see  FS#78963 ) so it seems os-prober might need fixing to work with fuse3. Someone needs to debug this.
Comment by Tobias Powalowski (tpowa) - Thursday, 06 July 2023, 05:14 GMT
Have you installed fuse3 package?
Comment by jb (jb.1234abcd) - Thursday, 06 July 2023, 05:43 GMT
Installed fuse3.
Installed os-prober - it works.
Uninstalled os-prober, configured /etc/grub.d/40_custom (menuentry) - it does not work.
Comment by Tobias Powalowski (tpowa) - Thursday, 06 July 2023, 06:46 GMT
As far as I understand this 40_custom file, it's only added to your config as plain copy. At least the tail -n +3 is doing only this.
Comment by jb (jb.1234abcd) - Thursday, 06 July 2023, 10:15 GMT
Yes,you are correct - we can ignore 40_custom (menuentry) case here.
Comment by Tobias Powalowski (tpowa) - Thursday, 06 July 2023, 10:17 GMT
So this is not a bug, but just not installing fuse3 after upgrade. Can we close this?
Comment by jb (jb.1234abcd) - Thursday, 06 July 2023, 10:40 GMT
If fuse3 is requires now, then the packaging/dependencies should be clear about it. The first comment above points in that direction, if I understand it.
$ pacman -Qi os-prober
$ pacman -Qi grub
Comment by Tobias Powalowski (tpowa) - Thursday, 06 July 2023, 10:46 GMT
pacman -Qi grub shows this:
Optional Deps : freetype2: For grub-mkfont usage [installed]
fuse3: For grub-mount usage [installed]
dosfstools: For grub-mkrescue FAT FS and EFI support
[installed]
lzop: For grub-mkrescue LZO support [installed]
efibootmgr: For grub-install EFI support [installed]
libisoburn: Provides xorriso for generating grub rescue iso
using grub-mkrescue [installed]
os-prober: To detect other OSes when generating grub.cfg in
BIOS systems
mtools: For grub-mkrescue FAT FS support [installed]

The depends were updated.
Comment by Toolybird (Toolybird) - Thursday, 06 July 2023, 22:41 GMT
So it turns out the deps are correct. Admittedly, os-prober using grub-mount behind the scenes is not obvious. Feel free to update the Wiki to make this clear.

Loading...