On Wed, 20 Sep 2006, Marco Gerards wrote:
I need to pass parameters such as network IP, mask, hostname in
grub.cfg, but currently grub2 can only handle up to 100 bytes???
Right, this is a bug. I will have a look at this really soon. We
need to change the code to do dynamic allocation.
Marco,
I may have missed your reply, but this still does not work ... how can
help debug this ...
Here's the section that I'm loading ...
@ "Linux Test" {
linux (hd0,1)/linux/bzc1 root=/dev/ram0 ro hostname=junior master=hda \
netaddr=192.168.243.118 network=fixed gateway=192.168.243.1 \
netmask=255.255.255.0 broadcast=192.168.243.255 \
modules=\"pcnet32\" \
testing_only=\"this is got to be good. Now I can send in a \
very long line!\"
initrd (hd0,1)/linux/ramc1.gz
}
__EOF__
I noticed you've changed to dynamic allocation in normal/main.c
'cat /proc/cmdline' returns ...
BOOT_IMAGE=(hd0,1)/linux/bzc1 root=/dev/ram0 ro hostname=junior master=hda
netaddr=192.168.243.118 network=fixed gateway=192.168.243.1
netmask=255.255.255.0 broadcast=192.168.243.255 modules="pcnet32"
testing_only="this is got to be good. Now I can send
Stops without finishing the last sentence (in a very long line!")
It seems to stop at 256 characters counting the input length
"linux (hd0,1)/..." _until_ "... Now I can send"
I've tried "loadlin" and it passes the whole command line.
Thanks,
Jeff.
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel