bugGNU GRUB - Bugs: bug #65754, os-prober doesn't read non...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #65754: os-prober doesn't read non c-format translations and halts with error

Submitter:  Mehmet Akif 9oglu <madanadam>
Submitted:  Fri 17 May 2024 07:22:38 AM UTC
   
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  madanadam
Open/Closed:  Open Release:  other
Release:  Reproducibility:  Every Time
Planned Release:  None

Fri 17 May 2024 07:22:38 AM UTC, original submission:  

I am using Void, AntiX and MX Linux distros in Turkish on my PCs. Void has grub version 2.12. After install 'update-grub' script doesn't generate config file if os-prober enabled. It works like a charm when I disable os-probing or delete Turkish translation file(grub.mo). I have found an unwanted character ($) in c-format translation. I have started to correct translation errors and joined to Turkish GRUB Translation team. But I want to report this situation as bug, so it could be corrected. I think translation parsing is incorrect in 30_os-prober file.

Here is error message with faulty translation:

/etc/grub.d/30_os-prober: 317: printf: %2$: invalid directive

This are console messages:

# grub-install --version
grub-install (GRUB) 2.12


# update-grub  /// with faulty translation (distro supplied)
Grub yapılandırma dosyası oluşturuluyor ...
Bulunan arka plan: /usr/share/void-artwork/splash.png
Bulunan linux kalıbı: /boot/vmlinuz-6.8.9_2
Bulunan initrd kalıbı: /boot/initramfs-6.8.9_2.img
Uyarı: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
/etc/grub.d/30_os-prober: 317: printf: %2$: invalid directive


# LC_ALL=C update-grub /// no error after disabling translation
Generating grub configuration file ...
Found background: /usr/share/void-artwork/splash.png
Found linux image: /boot/vmlinuz-6.8.9_2
Found initrd image: /boot/initramfs-6.8.9_2.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows 7 on /dev/sda1
Found antiX-runit (23.1) on /dev/sda3
Adding boot menu entry for UEFI Firmware Settings ...
done


# cp grub.mo /usr/share/locale/tr/LC_MESSAGES/grub.mo
# update-grub /// fixed after corrected translation
Grub yapılandırma dosyası oluşturuluyor ...
Bulunan arka plan: /usr/share/void-artwork/splash.png
Bulunan linux kalıbı: /boot/vmlinuz-6.8.9_2
Bulunan initrd kalıbı: /boot/initramfs-6.8.9_2.img
Uyarı: os-prober, diğer önyüklenebilir bölümleri tespit etmek için yürütülecek.
Çıktısı, bölüm üzerindeki önyüklenebilir ikili dosyaları tespit etmek ve yeni önyükleme girişleri oluşturmak için kullanılacak.
Windows 7 /dev/sda1 bölümünde bulundu
antiX-runit (23.1) /dev/sda3 bölümünde bulundu
UEFI Donanım Yazılımı Ayarları için önyükleme menüsü girişi ekleniyor...
bitti




Mehmet Akif 9oglu <madanadam>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #56060:  hata.grub.txt added by madanadam (2KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by madanadam (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-05-17 madanadam Attached File- Added hata.grub.txt, #56060

    Back to the top

    Powered by Savane 3.13-72d9.
    Corresponding source code