grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to increase commandline size


From: Jeff Chua
Subject: Re: how to increase commandline size
Date: Mon, 9 Oct 2006 00:13:53 +0800 (SGT)


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.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]