grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grub_cpio_find_file() finds unexisting files (Re: [PATCH] memdisk + grub


From: Robert Millan
Subject: grub_cpio_find_file() finds unexisting files (Re: [PATCH] memdisk + grub-mkrescue)
Date: Mon, 21 Jan 2008 22:09:03 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On Mon, Jan 21, 2008 at 12:47:06PM -0500, Pavel Roskin wrote:
> 
> I've tested the patch, and it seems to be OK, although I was surprised
> to see an empty menu on startup.  Perhaps a command line would be more
> appropriate in absence of grub.cfg?

I wanted to send a new mail about this, and then forgot.

This is because of a bug in cpio.mod.  The menu code thinks grub.cfg is
present due to grub_cpio_find_file() returning here:

      if (!hd.name[0])
        {
          *ofs = 0;
          return GRUB_ERR_NONE;
        }

but I'm too clueless about tar format to figure this out.

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]