grub-efi-amd64: grub-efi/install_devices depends on the value of LC_COLLATE/LANG
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
As discussed with Julian Andres Klode on IRC, there are cases where the value of grub-efi/
This is caused by this unique sort: https:/
# lsb_release -rd
Description: Ubuntu 22.04 LTS
Release: 22.04
From what I see, this can only happen on systems with NVMe drives:
# find -L /dev/disk/by-id/ -samefile /dev/nvme0n1p1
/dev/disk/
/dev/disk/
Let's assume grub-efi/
# debconf-show grub-efi-amd64 | grep grub-efi/
* grub-efi/
This was obtained with this LANG/LC_COLLATE:
# echo $LANG
C.UTF-8
# dpkg-reconfigure grub-efi-amd64
│ GRUB EFI system partitions: │
│ │
│ [*] /dev/nvme1n1p1 (535 MB; /boot/efi) on 512110 MB WDC CL SN720 SDAQNTW-512G-2000 │
│ [*] /dev/nvme0n1p1 (535 MB; ) on 512110 MB WDC CL SN720 SDAQNTW-512G-2000 │
# debconf-show grub-efi-amd64 | grep grub-efi/
* grub-efi/
We can see that the boxes are properly ticked here.
However:
# export LANG=en_US.UTF-8; dpkg-reconfigure grub-efi-amd64
│ GRUB EFI system partitions: │
│ │
│ [ ] /dev/nvme1n1p1 (535 MB; /boot/efi) on 512110 MB WDC CL SN720 SDAQNTW-512G-2000 │
│ [ ] /dev/nvme0n1p1 (535 MB; ) on 512110 MB WDC CL SN720 SDAQNTW-512G-2000 │
The boxes are not ticked, if I tick them, I get the following:
# debconf-show grub-efi-amd64 | grep grub-efi/
* grub-efi/
I assume the postinst script for grub-pc exhibits the same bug with the value of grub-pc/
affects: | linux-meta (Ubuntu) → grub2 (Ubuntu) |
description: | updated |