bugGNU GRUB - Bugs: bug #44892, grub-mkconfig -o /dev/null delete...


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

bug #44892: grub-mkconfig -o /dev/null delete /dev/null device !

Submitted by:  Jean-François Maeyhieux <zentoo>
Submitted on:  Tue 21 Apr 2015 08:58:40 AM UTC  
Category:  Filesystem Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release: 
Release:  2.02~beta1 Reproducibility:  Every Time
Planned Release:  2.03+

Tue 21 Apr 2015 04:54:47 PM UTC, comment #2:

@arvidjaar: You're right, I've checked it and grub-mkconfig output is on stderr.

Jean-François Maeyhieux <zentoo>
Tue 21 Apr 2015 04:47:30 PM UTC, comment #1:

grub-mkconfig and scripts that are included in grub sources output own messages to stderr. If it does not happen, it is a bug; please provide log of grub-mkconfig then.

Andrei Borzenkov <arvidjaar>
Project Member
Tue 21 Apr 2015 08:58:40 AM UTC, original submission:

To simulate a grub configuration file creation, I do:
grub-mkconfig -o /dev/null because grub-mkconfig write information messages AND configuration on standard output so it's only possible to catch informations without created configuration by creating a real file. By using /dev/null as configuration output, grub-mkconfig delete the device !

Note: if -o argurment is a directory, grub-mkconfig write the file in the directory and don't print an error too.

=> grub-mkconfig need to check if the output path is a real file in order to do not supress special files as character/block devices.

=> grub-mkconfig need to use stderr as output for informationnal messages

Jean-François Maeyhieux <zentoo>


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 (Updated the item)
  • -email is unavailable- added by arvidjaar (Posted a comment)
  • -email is unavailable- added by zentoo (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-03-05 phcoder Planned Release2.02 => 2.03+
    2016-03-02 phcoder Planned ReleaseNone => 2.02

    Back to the top

    Powered by Savane 3.3