bugGNU GRUB - Bugs: bug #65854, The default configuration for...

 
 

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

bug #65854: The default configuration for themes an fonts overrides user modifications

Submitter:  Marcin Wolcendorf <antymat>
Submitted:  Sun 09 Jun 2024 07:32:23 AM UTC
   
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Feature Request
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  other
Release:  Reproducibility:  Every Time
Planned Release:  None

Sun 09 Jun 2024 07:32:23 AM UTC, original submission:  

Block device configuration:

I have a fully encrypted system (except the EFI partition) with a separate /boot (LUKS1 encrypted) partition and a LUKS2 encrypted PV for the LVM group. All the themes, fonts (and encryption keys for the PV) are stored on the /boot partition. There is no need to decrypt the PV in grub stage of boot, the initramfs will have all the information to do it.

The issue:

The grub configuration will make grub to, correctly, ask me first for the password to the /boot, and then, immediately after and erroneously, for the password to the PV.

The "investigation":

In the 00_header, the initial part of the /boot/grub/grub.cfg is created. This includes the fonts and the themes and their locations. The 00_header trawls the configuration in /etc/default/grub for the location of the theme. Then takes the name of the theme, disregards the given location and searches for the theme in "known" locations and uses the first found: /usr/share/desktop-base/grub-themes/. This results with the / being used, and therefore makes it necessary to decrypt the PV it resides on.

The proposal for fix:
Changing the order in which the "known" locations are searched for the theme fixes the issue. For an example see the attached file.




Marcin Wolcendorf <antymat>

 

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

Attached Files
file #56147:  theme_config_override.patch added by antymat (658B - text/x-patch - Proposed fix)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by antymat (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-06-09 antymat Attached File- Added theme_config_override.patch, #56147

    Back to the top

    Powered by Savane 3.13-72d9.
    Corresponding source code