Skip to contentSkip to conversation

grub-emu is broken since rev 2036

DISCUSSION Felix Zielcke 3 participants 5 messages Mar 24, 2009 – Mar 28, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

since revision 2036, i.e. Bean's command rewrite grub-emu is broken. On every command you'll get `invalid arch independent ELF magic'.

Signature · 1 line
Felix Zielcke
#1 lore raw
Quoted 4 lines · Felix Zielcke

Hi,

since revision 2036, i.e. Bean's command rewrite grub-emu is broken. On every command you'll get `invalid arch independent ELF magic'.

Hi,

This is caused by the dynamic loading of commands. In normal.mod, it scans command.lst and tries to load command on demand. However, the modules on disk are pc booting, they can't be loaded by grub-emu. The solution is to point the root device elsewhere with -r option, so that command.lst won't be found.

Signature · 1 line
Bean
#2 lore raw
Quoted 8 lines · Bean

Hi,

This is caused by the dynamic loading of commands. In normal.mod, it scans command.lst and tries to load command on demand. However, the modules on disk are pc booting, they can't be loaded by grub-emu. The solution is to point the root device elsewhere with -r option, so that command.lst won't be found.

But then, other things can't be found, like grub.cfg.

Can't we disable module loading altogether on grub-emu? Or just silence the warning there.

Signature · 5 lines
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."
#3 lore raw
Quoted 10 lines · Robert Millan
Quoted 8 lines · Bean

Hi,

This is caused by the dynamic loading of commands. In normal.mod, it scans command.lst and tries to load command on demand. However, the modules on disk are pc booting, they can't be loaded by grub-emu. The solution is to point the root device elsewhere with -r option, so that command.lst won't be found.

Quoted 4 lines

But then, other things can't be found, like grub.cfg.

Can't we disable module loading altogether on grub-emu?  Or just silence the warning there.

Hi,

The dynamic command loader can be separated in a module. In grub-emu, we just don't use it.

Anyway, this issue is only temporary. After my patch to split the normal mode, it will go away.

Signature · 1 line
Bean
#4 lore raw
Quoted 4 lines · Bean

Hi,

The dynamic command loader can be separated in a module.

I suppose you mean separated to another .c file; putting the dynamic loader in a module is like... uhm :-)

Signature · 5 lines
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."