[ipxe-devel] read function issue (string: 256 char limit?)

Matteo Guglielmi Matteo.Guglielmi at dalco.ch
Thu Sep 9 07:48:49 UTC 2021

Hello everyone,

I think there is a problem when setting a sting longer
than 256 characters in conjunction with using the read
function, as exemplified here below:

set read-timeout 3000
set args preempt=0 rd.driver.blacklist=nouveau,radeon,ast,mgag200 modprobe.blacklist=nouveau,radeon,ast,mgag200 nouveau.modeset=0 radeon.modeset=0 ast.modeset=0 mgag200.modeset=0 audit=0 selinux=0 consoleblank=0 net.ifnames=0 biosdevname=0 rd.lvm=0 rd.dm=0 console=tty1 loglevel=1 nomodeset

echo && echo -n Kernel cmdline: ${} && read --timeout ${read-timeout} args ||

When such a code is executed,

only the first 256 characters of "args" are printed on
the screen and the editing of "args" is not possible
since the cursor remains frozen at the end of the line.

Would it be possible to extend the size limit of 256
characters of the read function?

Any workaround or suggestion is appreciated.

Thank you.

More information about the ipxe-devel mailing list