Skip to contentSkip to conversation

Only skip the image name if it is the image name

PATCH Keir Fraser 2 participants 2 messages Aug 29, 2007 – Aug 30, 2007 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 7 lines · Horms
Quoted 3 lines · Keir Fraser

Isn't that a kexec bug? Multiboot command lines include the image name in all other cases. If there's no suitable name, perhaps a dummy name should be included?

I was wondering where it should be fixed. Do you know if supplying BOOT_IMAGE is part of the multiboot specification?

Ah, sorry, I forgot that you repro'ed this on IA64 which does not use multiboot at all.

The problem here is, I believe, that the cooking of the command line to strip the image name is actually an arch-specific operation. I notice that e.g., Linux on IA64 does nto bother to do this at all. The fact that the name is prefixed with BOOT_IMAGE= absolutely avoids any possible name clash with cmdline parameters. Look at /proc/cmdline on a native IA64 Linux box for example -- the image name is not stripped off.

What I will do is make arch/x86/setup.c strip the image name before calling the generic parser. That should make IA64 much happier. Hopefully it will be okay for PPC too.

-- Keir

#2 lore raw
Quoted 20 lines · Keir Fraser
Quoted 7 lines · Horms
Quoted 3 lines · Keir Fraser

Isn't that a kexec bug? Multiboot command lines include the image name in all other cases. If there's no suitable name, perhaps a dummy name should be included?

I was wondering where it should be fixed. Do you know if supplying BOOT_IMAGE is part of the multiboot specification?

Ah, sorry, I forgot that you repro'ed this on IA64 which does not use multiboot at all.

The problem here is, I believe, that the cooking of the command line to strip the image name is actually an arch-specific operation. I notice that e.g., Linux on IA64 does nto bother to do this at all. The fact that the name is prefixed with BOOT_IMAGE= absolutely avoids any possible name clash with cmdline parameters. Look at /proc/cmdline on a native IA64 Linux box for example -- the image name is not stripped off.

Quoted 3 lines

What I will do is make arch/x86/setup.c strip the image name before calling the generic parser. That should make IA64 much happier. Hopefully it will be okay for PPC too.

Great, I think that solution will work quite well.

Signature · 3 lines
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/