* [PATCH] _chain can break stuff
@ 2008-06-06 16:13 Robert Millan
2008-06-14 19:05 ` Robert Millan
0 siblings, 1 reply; 2+ messages in thread
From: Robert Millan @ 2008-06-06 16:13 UTC (permalink / raw)
To: grub-devel
[-- Attachment #1: Type: text/plain, Size: 606 bytes --]
Turns out that right now, if you try to boot from LVM on ext3 with msdos
partmap, you get a core.img that is slightly too big to fit in the post-MBR
region. When you're booting from LVM, if it won't fit there you have no
other option, which makes this a big problem.
If you remove _chain from the list, it fits again. Since _chain can make the
difference between core.img fitting or not fitting, I think it should not be
included unless user requests it.
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What good is a phone call… if you are unable to speak?
(as seen on /.)
[-- Attachment #2: chain.diff --]
[-- Type: text/x-diff, Size: 878 bytes --]
diff -x ChangeLog -x configure -x config.h.in -x CVS -x '*~' -x '*.mk' -urp ../grub2/util/i386/pc/grub-install.in ./util/i386/pc/grub-install.in
--- ../grub2/util/i386/pc/grub-install.in 2008-06-06 17:49:43.000000000 +0200
+++ ./util/i386/pc/grub-install.in 2008-06-06 18:11:28.000000000 +0200
@@ -231,8 +231,8 @@ partmap_module=`$grub_probe --target=par
# Device abstraction module, if any (lvm, raid).
devabstraction_module=`$grub_probe --target=abstraction --device ${grub_device}`
-# _chain is often useful
-modules="$modules $fs_module $partmap_module biosdisk $devabstraction_module _chain"
+# The order in this list is critical. Be careful when modifiing it.
+modules="$modules $fs_module $partmap_module biosdisk $devabstraction_module"
$grub_mkimage --output=${grubdir}/core.img --prefix=`make_system_path_relative_to_its_root ${grubdir}`/ $modules || exit 1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] _chain can break stuff
2008-06-06 16:13 [PATCH] _chain can break stuff Robert Millan
@ 2008-06-14 19:05 ` Robert Millan
0 siblings, 0 replies; 2+ messages in thread
From: Robert Millan @ 2008-06-14 19:05 UTC (permalink / raw)
To: grub-devel
Committed.
On Fri, Jun 06, 2008 at 06:13:57PM +0200, Robert Millan wrote:
>
> Turns out that right now, if you try to boot from LVM on ext3 with msdos
> partmap, you get a core.img that is slightly too big to fit in the post-MBR
> region. When you're booting from LVM, if it won't fit there you have no
> other option, which makes this a big problem.
>
> If you remove _chain from the list, it fits again. Since _chain can make the
> difference between core.img fitting or not fitting, I think it should not be
> included unless user requests it.
>
> --
> Robert Millan
>
> <GPLv2> I know my rights; I want my phone call!
> <DRM> What good is a phone call… if you are unable to speak?
> (as seen on /.)
> diff -x ChangeLog -x configure -x config.h.in -x CVS -x '*~' -x '*.mk' -urp ../grub2/util/i386/pc/grub-install.in ./util/i386/pc/grub-install.in
> --- ../grub2/util/i386/pc/grub-install.in 2008-06-06 17:49:43.000000000 +0200
> +++ ./util/i386/pc/grub-install.in 2008-06-06 18:11:28.000000000 +0200
> @@ -231,8 +231,8 @@ partmap_module=`$grub_probe --target=par
> # Device abstraction module, if any (lvm, raid).
> devabstraction_module=`$grub_probe --target=abstraction --device ${grub_device}`
>
> -# _chain is often useful
> -modules="$modules $fs_module $partmap_module biosdisk $devabstraction_module _chain"
> +# The order in this list is critical. Be careful when modifiing it.
> +modules="$modules $fs_module $partmap_module biosdisk $devabstraction_module"
>
> $grub_mkimage --output=${grubdir}/core.img --prefix=`make_system_path_relative_to_its_root ${grubdir}`/ $modules || exit 1
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What good is a phone call… if you are unable to speak?
(as seen on /.)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-14 19:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-06 16:13 [PATCH] _chain can break stuff Robert Millan
2008-06-14 19:05 ` Robert Millan
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.