Bug#713886: grub-common: grub-mkconfig empties grub.cfg; old content not saved; system remains unbootable.

Colin Watson cjwatson at debian.org
Mon Jun 24 08:59:40 UTC 2013


Control: retitle -1 grub-common: grub-script-check should complain about configuration files with no useful content
Control: severity -1 important

On Mon, Jun 24, 2013 at 12:17:43AM +0200, Hans Putter wrote:
> Am 23.06.2013 23:37, schrieb Colin Watson:
> >On Sun, Jun 23, 2013 at 04:44:20PM +0200, Hans Putter wrote:
> >>-- Configuration Files:
> >>/etc/grub.d/10_linux changed:
> >
> >You have local changes to several files here, and I suspect you've
> >introduced a syntax error somewhere along the way.  Please attach a
> >tarball of /etc/grub.d/ and I can check for this.
> 
> If there is a syntax error, it ought to go without saying that
> grub-mkconfig sends a warning.

I agree that grub-script-check (which is called by grub-mkconfig) ought
to warn about this.

> Again : Destroying data which are absolutely necessary for booting is
> extremly irresponsible when executed without any precautions.

No information has been destroyed; you can recover from any suitable
recovery environment, such as a Debian installation USB stick.  Nothing
in /boot/grub/grub.cfg is irreplaceable.

In your tarball, none of the files are executable, which is one possible
reason for this failure.  However, you've also changed all the file
names, so I can't be sure that you gave me an accurate representation of
what's on your system (such an accurate representation was why I asked
for a tarball - I'd hoped you'd use something simple like 'tar cf
etc-grub.d.tar.gz /etc/grub.d').

Please post the output of 'ls -l /etc/grub.d/'.

-- 
Colin Watson                                       [cjwatson at debian.org]



More information about the Pkg-grub-devel mailing list