Bug 1785929 - Missing boot entries, exception '28InvalidStringFormatException'
Summary: Missing boot entries, exception '28InvalidStringFormatException'
Keywords:
Status: CLOSED DUPLICATE of bug 1711516
Alias: None
Product: Fedora
Classification: Fedora
Component: grub-customizer
Version: 30
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Vasiliy Glazov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-22 13:33 UTC by Daniele Santini
Modified: 2019-12-23 08:29 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-12-23 08:29:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Output of grub2-mkconfig (15.07 KB, text/plain)
2019-12-22 13:33 UTC, Daniele Santini
no flags Details

Description Daniele Santini 2019-12-22 13:33:25 UTC
Created attachment 1647166 [details]
Output of grub2-mkconfig

Description of problem:

When opening grub-customizer, most of the boot entries are absent from the list.



Version-Release number of selected component (if applicable):

$ grub-customizer --version
Grub Customizer, version 5.1.0

$ dnf info grub-customizer
Ultima verifica della scadenza dei metadati: 0:00:23 fa il dom 22 dic 2019, 14:30:37.
Pacchetti installati
Name         : grub-customizer
Version      : 5.1.0
Rilascio     : 2.fc30
Architecture : x86_64
Size         : 3.9 M
Sorgente     : grub-customizer-5.1.0-2.fc30.src.rpm
Repository   : @System
Dal repo     : fedora
...

$ uname -a
Linux Fedora-M5711 5.3.16-200.fc30.x86_64 #1 SMP Fri Dec 13 17:48:38 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux



How reproducible:
Launch grub-customizer and check the proposed boot entries.



Steps to Reproduce:
1.Start grub-customizer
2.Insert root password when requested
3.Wait for entry list to load
4.Check whether all expected entries are present



Actual and expected results:

I have attached a file with the output of grub2-mkconfig.
I would expect to see in my grub-customizer GUI at least one voice for Fedora 30, at least one voice for Fedora 31 and one voice for Windows 10.
Instead I only get an empty folder named "Advanced options for Fedora" and a voice named 'Windows 10 (on /dev/sda1)'.
If I click the blue refresh button, the empty Fedora folder disappears and it remains only the Windows 10 voice.



Additional info:

If I run grub-customizer from terminal, this is the output:



localuser:root being added to access control list
 *** initializing (w/o specified bootloader type)…
   * reading partition info…
   * Loading Framebuffer resolutions (background process)
   * Finding out if this is a live CD
 *** initializing (w/ specified bootloader type)…
   * Checking if the config directory is clean
 *** loading configuration
 *** loading - preserveConfig: no
   * unsetting saved config
 *** loading settings
 *** loading grub list
   * loading scripts…
   * loading proxies…
   * cleaning up proxy configuration…
   * creating proxifiedScript links & chmodding other files…
   * running grub2-mkconfig
   * restoring grub configuration
   * removing invalid proxies from list
     exception '28InvalidStringFormatException'
 with message 'unable to parse index from '
 in /builddir/build/BUILD/grub-customizer-5.1.0/src/main/../Bootstrap/../Model/Script.hpp:308
     exception '28InvalidStringFormatException'
 with message 'unable to parse index from '
 in /builddir/build/BUILD/grub-customizer-5.1.0/src/main/../Bootstrap/../Model/Script.hpp:308
     exception '28InvalidStringFormatException'
 with message 'unable to parse index from '
 in /builddir/build/BUILD/grub-customizer-5.1.0/src/main/../Bootstrap/../Model/Script.hpp:308
   * loading completed
 *** grub list completely loaded
 *** loading saved grub list
     theme StylishDark not found!



If then I click the refresh button, this is the output:



 *** loading - preserveConfig: yes
 *** switching settings
 *** loading grub list
   * creating proxifiedScript links & chmodding other files…
   * running grub2-mkconfig
   * restoring grub configuration
   * removing invalid proxies from list
   * loading completed
 *** grub list completely loaded
 *** restoring settings



The bug is probably related to these lines from the log:



exception '28InvalidStringFormatException'
 with message 'unable to parse index from '
 in /builddir/build/BUILD/grub-customizer-5.1.0/src/main/../Bootstrap/../Model/Script.hpp:308



I guess this error is generated by this line of code: https://git.launchpad.net/grub-customizer/tree/src/Model/Script.hpp#n308

Comment 1 Vasiliy Glazov 2019-12-23 08:29:14 UTC

*** This bug has been marked as a duplicate of bug 1711516 ***


Note You need to log in before you can comment on or make changes to this bug.