[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to call dban fron grub ?
From: |
Robert Millan |
Subject: |
Re: How to call dban fron grub ? |
Date: |
Mon, 10 Aug 2009 13:38:38 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Sat, Aug 08, 2009 at 11:25:57AM +0530, J. Bakshi wrote:
> On Fri, 07 Aug 2009 19:35:09 +0200
> Felix Zielcke <address@hidden> 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."