All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: How to call dban fron grub ?
Date: Mon, 10 Aug 2009 13:38:38 +0200	[thread overview]
Message-ID: <20090810113838.GF9344@thorin> (raw)
In-Reply-To: <20090808112557.08290999@shiva.selfip.org>

On Sat, Aug 08, 2009 at 11:25:57AM +0530, J. Bakshi wrote:
> On Fri, 07 Aug 2009 19:35:09 +0200
> Felix Zielcke <fzielcke@z-51.de> wrote:
> [..........]
> > > 
> > > Does anyone of you have the luck to call dban from grub2 ?
> > > 
> > >   
> > 
> > Try with the old linux loader with linux16 and initrd16
> [..........]
> 
> WORKING !! it is working :-) you are a hero.

I wonder why doesn't our current linux loader fail gracefuly and tell user
to use linux16.  I thought we had code specifically to do this!

  if (! (lh.loadflags & GRUB_LINUX_FLAG_BIG_KERNEL))
    {
      grub_error (GRUB_ERR_BAD_OS, "zImage doesn't support 32-bit boot"
#ifdef GRUB_MACHINE_PCBIOS
                  " (try with `linux16')"
#endif
                  );
      goto fail;
    }

  /* FIXME: 2.03 is not always good enough (Linux 2.4 can be 2.03 and
     still not support 32-bit boot.  */
  if (lh.header != grub_cpu_to_le32 (GRUB_LINUX_MAGIC_SIGNATURE)
      || grub_le_to_cpu16 (lh.version) < 0x0203)
    {
      grub_error (GRUB_ERR_BAD_OS, "version too old for 32-bit boot"
#ifdef GRUB_MACHINE_PCBIOS
                  " (try with `linux16')"
#endif
                  );
      goto fail;
    }

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."



      reply	other threads:[~2009-08-10 11:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-07 17:17 How to call dban fron grub ? J. Bakshi
2009-08-07 17:35 ` Felix Zielcke
2009-08-08  5:55   ` J. Bakshi
2009-08-10 11:38     ` Robert Millan [this message]

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=20090810113838.GF9344@thorin \
    --to=rmh@aybabtu.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.