grub2 confusion

Michal Jaegermann michal at harddata.com
Thu Oct 6 21:04:28 UTC 2011


On Thu, Oct 06, 2011 at 10:09:44PM +0200, Michael Schwendt wrote:
> 
> grub2-mkconfig is just a brute-force shell script that ends with
> 
>    # none of the children aborted with error, install the new grub.cfg
>    mv -f ${grub_cfg}.new ${grub_cfg}
> 
> so instead of not shipping an incompatible /etc/grub2.cfg symlink as
> long as this tool obviously cannot handle the symlink, there are lame and
> dubious attempts at defending the symlink.

File a bug against grub2.  If instead of

    mv -f ${grub_cfg}.new ${grub_cfg}

you would have
     
     cat ${grub_cfg}.new > ${grub_cfg}; rm -f ${grub_cfg}.new

you would not notice any troubles.

  Michal


More information about the test mailing list