From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: [patch] GRUB possible patches
Date: Thu, 11 Feb 2010 16:44:00 +0100 [thread overview]
Message-ID: <4B7425C0.3060309@gmail.com> (raw)
In-Reply-To: <d516a67d1002110500k55b33e6fo4b3056b6c5dbbbcb@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2434 bytes --]
George Buranov wrote:
> Hello eveybody.
>
> I am currently start investigation (and fixing the things that don't
> work for me =))
>
> So, I got two for today, one is fix, and one is morelike a question, I
> am more than sure it's my mistake.
>
> What's the correct way of applying patches to grub2? Am I correct that
> all I need is to post the patch to this mailing list and than some
> guys are applying them?:)
>
> 1) IMHO that's clearly a bug.
It is. Can you write a ChangeLog entry?
> Actually, I am not sure how did it work before =)
It's a rarely used branch of code.
>
> === modified file 'disk/efi/efidisk.c'
> --- disk/efi/efidisk.c 2010-01-20 08:12:47 +0000
> +++ disk/efi/efidisk.c 2010-02-11 10:58:49 +0000
> @@ -825,7 +825,7 @@
> if (! disk)
> return 1;
>
> - if (disk->id == GRUB_DISK_DEVICE_EFIDISK_ID)
> + if (disk->dev && disk->dev->id == GRUB_DISK_DEVICE_EFIDISK_ID)
> {
> struct grub_efidisk_data *d;
>
> 2) That's more interesting. I nocticed that when I try to browse CD
> (ISO 9660 format) all files are ended with ";1". This basically
> crashed loading everything (including grub.cfg file). I fixed this by
> this stupid hack, but maybe somebody knows where is the clue?
>
;1 is so called version. Basically all terminating ;<number> have to be
stripped but only if filename doesn't come from rockridge or joliet.
Apparently nobody uses grub2 on non-rockridge, non-joliet iso. While
this bug should be fixed using grub from plain iso isn't supported due
to filename length limitation.
> http://picasaweb.google.com/lh/photo/psaYCXsX_M77pdG4_qeFGw?feat=directlink
>
> === modified file 'fs/iso9660.c'
> --- fs/iso9660.c 2010-01-27 03:11:20 +0000
> +++ fs/iso9660.c 2010-02-11 11:11:36 +0000
> @@ -638,6 +638,9 @@
> if (filename_alloc)
> grub_free (oldname);
>
> + int hookedFile = grub_strlen (filename);
> + filename[hookedFile - 2] = '\0';
> +
> filename_alloc = 1;
> }
>
>
> Regards,
> Georgy
> ------------------------------------------------------------------------
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 293 bytes --]
next prev parent reply other threads:[~2010-02-11 15:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-11 13:00 [patch] GRUB possible patches George Buranov
2010-02-11 15:44 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2010-02-12 14:20 ` gburanov
2010-02-16 12:13 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-02-17 7:41 ` gburanov
2010-02-20 11:03 ` Vladimir 'φ-coder/phcoder' Serbinenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B7425C0.3060309@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.