bugGNU GRUB - Bugs: bug #41030, grub-install does not check...

 
 

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

bug #41030: grub-install does not check arguments for sanity before proceeding

Submitter:  <qwertial>
Submitted:  Sun 29 Dec 2013 09:20:19 PM UTC
   
 
Category:  Installation Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  Git master
Release:  Reproducibility:  Every Time
Planned Release:  2.03+

Mon 30 Dec 2013 01:43:47 AM UTC, comment #1: 

Attempting to guess what the user might have wanted is the way to get spaghetti unextendable code resulting in unexpected result. E.g. grub-install C: already has a meaning: install to C PBR. Overloading it with other meanings will add ambiguity.

Vladimir Serbinenko <phcoder>
Group administrator
Sun 29 Dec 2013 09:20:19 PM UTC, original submission:  

To reproduce: run

grub-install --target=i386-pc --verbose /dev/bull

and observe that it copies modules before even establishing that /dev/bull is not an actual block device.

There's an opportunity for some "smart" behaviour here: for example, when given a directory (instead of a device node) as the installation target argument, GRUB could use it as if it were passed as --boot-directory, and install itself to the underlying partition's disk. (For the mingw port, specifying a drive letter in this way would be less awkward than using paths like \\?\PhysicalDrive0.) But this is just a suggestion.

Also, grub-install could check whether a configuration file exists in the boot directory, and prompt the user to create one (or just prompt unconditionally).

<qwertial>

 

(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 phcoder (Posted a comment)
  • -email is unavailable- added by qwertial (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
    2016-03-02 phcoder Planned ReleaseNone 2.03+

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code