Public bug reported:
item_in_dir() in common.sh fails to match directory entries under Turkish
(tr_TR) locale due to locale-dependent case folding, breaking UEFI OS
detection. The Turkish locale has two lower-case i's and two upper-case I's:
dotted, dotless each. item_in_dir() in /usr/share/os-prober/common.sh performs:
ls -1 "$dir" | grep -i "^${item}\$"
In Turkish locale the grep will not match the EFI folder.
A temporary fix is adding "export LC_ALL=C" to the start of /etc/default/grub,
but ideally, the line in common.sh should be replaced with:
ls -1 "$dir" 2>/dev/null | LC_ALL=C grep -i "^${item}\$"
As this function isn't used for any crazy names, as far as I know.
1) The release of Ubuntu you are using:
Description: Ubuntu 26.04 LTS
Release: 26.04
2) The version of the package you are using:
os-prober:
Installed: 1.84ubuntu1
Candidate: 1.84ubuntu1
Version table:
*** 1.84ubuntu1 500
500 http://archive.ubuntu.com/ubuntu resolute/main amd64 Packages
100 /var/lib/dpkg/status
3) What you expected to happen:
os-prober sees the Windows Boot Manager correctly
4) What happened instead:
No output from os-prober
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: os-prober 1.84ubuntu1
ProcVersionSignature: Ubuntu 7.0.0-22.22-generic 7.0.0
Uname: Linux 7.0.0-22-generic x86_64
ApportVersion: 2.34.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Wed Jul 1 07:30:32 2026
InstallationDate: Installed on 2025-09-10 (294 days ago)
InstallationMedia: Ubuntu 24.04.3 LTS "Noble Numbat" - Release amd64
(20250805.1)
SourcePackage: os-prober
UpgradeStatus: Upgraded to resolute on 2026-04-30 (62 days ago)
** Affects: os-prober (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug resolute wayland-session
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2158871
Title:
os-prober cannot detect EFI folder with Turkish locale
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/os-prober/+bug/2158871/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs