bugGNU GRUB - Bugs: bug #56339, grub-set-default and grub-reboot...

 
 

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

bug #56339: grub-set-default and grub-reboot utilities should check for MENU_ENTRY parameter validity

Submitter:  tot-to <tot_to>
Submitted:  Fri 17 May 2019 12:27:45 PM UTC
   
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  other
Release:  Reproducibility:  None
Planned Release:  None

Fri 17 May 2019 12:27:45 PM UTC, original submission:  

In case of a typo in the MENU_ENTRY parameter both grub-set-default and grub-reboot utilities exit with no error message and with successful exit status. After the reboot grub will try to load the first menu entry found in grub.cfg

I believe it it a very serious issue. In case if the first entry refers to an unbootable configuration on a remote server, it leads to total loose of the system until physical access is possible!

Steps to reproduce:

# grub-set-default blahblahblah && echo success

Expected results:

1) A error message
2) No change of the default menu entry upon reboot

Actual results:

1) Message 'success' is printed
2) The default menu entry in changed to the fist entry in grub.cfg upon reboot

The same issue on my distribution's tracker:
https://bugs.gentoo.org/686054

tot-to <tot_to>

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tot_to (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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-54b4.
    Corresponding source code