Arch Linux

Please read this before reporting a bug:

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!

FS#64155 - [grub] os-prober script requires 'which' package to function, exits silently when 'which' is missing

Attached to Project: Arch Linux
Opened by John (hyperflexed) - Thursday, 17 October 2019, 01:46 GMT
Last edited by Christian Hesse (eworm) - Monday, 28 October 2019, 18:44 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Ronald van Haren (pressh)
Christian Hesse (eworm)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No



The installation guide (wiki) claims that running 'grub-mkconfig' after installing the 'os-prober' package will detect other operating systems.

As far as I can see, 'which' isn't included in the 'base' package group, nor is it required for 'grub'.

This means that grub-mkconfig will not properly run the '30_os-prober' script under '/etc/grub.d/' (see line 33 of '30_os-prober' which assumes availability of 'which')

Additional info:
* package version(s): 2.04-2

Steps to reproduce:

1. create a fresh Arch install, pacstrap 'base', install 'grub', etc.
2. install 'os-prober'
3. mount partitions with alternate operating systems
4. run 'os-prober' manually, observe that alternate operating systems are properly detected
5. run 'grub-mkconfig', observe that alternate operating systems aren't detected

Alternatively, just uninstall 'which' on a system where alternative OSes are already in the grub config, and observe that running 'grub-mkconfig' again doesn't detect the alternative OSes.
This task depends upon

Closed by  Christian Hesse (eworm)
Monday, 28 October 2019, 18:44 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in SVN