URL: <https://savannah.gnu.org/bugs/?65754>
Summary: os-prober doesn't read non c-format translations and halts with error Group: GNU GRUB Submitter: 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 Originator Email: Open/Closed: Open Release: other Release: Discussion Lock: Any Reproducibility: Every Time Planned Release: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Fri 17 May 2024 07:22:38 AM UTC By: Mehmet Akif 9oglu <madanadam> 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 _______________________________________________________ File Attachments: ------------------------------------------------------- Name: hata.grub.txt Size: 2KiB <https://file.savannah.gnu.org/file/hata.grub.txt?file_id=56060> AGPL NOTICE These attachments are served by Savane. You can download the corresponding source code of Savane at https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-4b48cbb9570c156bf7d681225b664258d7028914.tar.gz _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?65754> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/