* Overlaying default grub.cfg makes qemu "fat:" partition inaccessible
@ 2009-03-24 22:12 James Collier
2009-03-25 4:01 ` Pavel Roskin
2009-03-25 12:39 ` Neal H. Walfield
0 siblings, 2 replies; 4+ messages in thread
From: James Collier @ 2009-03-24 22:12 UTC (permalink / raw)
To: Grub-devel
[-- Attachment #1: Type: text/plain, Size: 1260 bytes --]
Hi all,
I'm using GRUB2 from svn (r2039) with qemu.
Steps I take to reproduce:
1. create an overlay directory e.g. /grub2/overlay
2. populate the directory with
overlay/boot
overlay/boot/grub
overlay/goot/grub/grub.cfg
Where grub.cfg contains "some-menuentry" for example I use:
menuentry "Viengoos" {
multiboot /viengoos -D 3 -o serial
module /hieronymus
}
3. run (option1):
$ cd /grub2
$ grub-mkrescue --image-type=floppy --emulation=floppy \
--overlay=overlay grub2-boot-floppy
or (option2):
$ cd /grub2
$ grub-mkrescue --image-type=cdrom --overlay=overlay \ grub2-boot-cdrom
4. start qemu with:
$ cd /grub2
(option 1):
$ qemu --serial stdio -hda fat:kernel-dir -fda grub2-boot-floppy -boot a
or
(option 2):
$ qemu --serial stdio -hda fat:kernel-dir -fda grub2-boot-cdrom -boot d
In the case of option 1, grub2 boots straight to the menu as expected.
Typeing 'c' to get to the prompt then 'ls' at the prompt reveals only
the (memdisk) device.
It was expected that at least (hd0,1) for the -hda fat: partition would
be available
Option: following the above and typing 'ls' at the prompt reveals
(hd0) and (hd96) where (hd0,1) was also expected as above.
qemu version 0.9.1
Thanks,
James Collier
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Overlaying default grub.cfg makes qemu "fat:" partition inaccessible
2009-03-24 22:12 Overlaying default grub.cfg makes qemu "fat:" partition inaccessible James Collier
@ 2009-03-25 4:01 ` Pavel Roskin
2009-03-25 12:39 ` Neal H. Walfield
1 sibling, 0 replies; 4+ messages in thread
From: Pavel Roskin @ 2009-03-25 4:01 UTC (permalink / raw)
To: grub-devel
Quoting James Collier <james.collier412@gmail.com>:
> In the case of option 1, grub2 boots straight to the menu as expected.
> Typeing 'c' to get to the prompt then 'ls' at the prompt reveals only
> the (memdisk) device.
> It was expected that at least (hd0,1) for the -hda fat: partition would
> be available
Even without the -hda option, you should get (fd0). I can reproduce
the problem with the current GRUB.
My impression is that loading grub.cfg stops the initial automatic
loading of the modules for the existing hardware. You still can load
such modules manually:
insmod biosdisk
insmod pc
After that, ls will show (fd0) and other devices.
It looks like a bug to me.
--
Regards,
Pavel Roskin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Overlaying default grub.cfg makes qemu "fat:" partition inaccessible
2009-03-24 22:12 Overlaying default grub.cfg makes qemu "fat:" partition inaccessible James Collier
2009-03-25 4:01 ` Pavel Roskin
@ 2009-03-25 12:39 ` Neal H. Walfield
2009-03-25 17:26 ` Pavel Roskin
1 sibling, 1 reply; 4+ messages in thread
From: Neal H. Walfield @ 2009-03-25 12:39 UTC (permalink / raw)
To: The development of GRUB 2; +Cc: Grub-devel
Taking a look at grub-mkrescue, it seems that it creates a
boot/grub/grub.cfg that executes an insmod for each specified module.
It then copies the overlay files overwriting the just-created
grub.cfg.
The user's grub.cfg should either be appended to the one created by
grub-mkrescue or there should be a way to specify a config file, which
the generated grub.cfg loads.
Neal
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Overlaying default grub.cfg makes qemu "fat:" partition inaccessible
2009-03-25 12:39 ` Neal H. Walfield
@ 2009-03-25 17:26 ` Pavel Roskin
0 siblings, 0 replies; 4+ messages in thread
From: Pavel Roskin @ 2009-03-25 17:26 UTC (permalink / raw)
To: The development of GRUB 2
On Wed, 2009-03-25 at 13:39 +0100, Neal H. Walfield wrote:
> Taking a look at grub-mkrescue, it seems that it creates a
> boot/grub/grub.cfg that executes an insmod for each specified module.
> It then copies the overlay files overwriting the just-created
> grub.cfg.
>
> The user's grub.cfg should either be appended to the one created by
> grub-mkrescue or there should be a way to specify a config file, which
> the generated grub.cfg loads.
This behavior seems inconsistent to me. It's not like loading grub.cfg
is the main goal of GRUB. The main goal is loading an OS, which may
require more modules.
An equivalent in the OS world would be an OS failing to load network
drivers if X window system is started successfully.
Perhaps loading of grub.cfg should be separated from entering the normal
mode.
--
Regards,
Pavel Roskin
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-03-25 17:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-24 22:12 Overlaying default grub.cfg makes qemu "fat:" partition inaccessible James Collier
2009-03-25 4:01 ` Pavel Roskin
2009-03-25 12:39 ` Neal H. Walfield
2009-03-25 17:26 ` Pavel Roskin
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.