From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513 Description of problem: When doing a PXE install, any kernel parameters that are passed to the installing client locally (i.e. on the local console, not passed via TFTP or DHCP) are truncated to the first 28 characters. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.Setup a PXE installation environment 2.Boot a client and hit F8 to bring up the PXE boot menu 3.Select install 4.Press a key to enter kernel parameters 5.Enter a long list of kernel parameters that will be ignored (e.g. -s a123456789 b123456789 c123456789 6.Let the installation complete 7.After the post-installation reboot, type 'cat /proc/cmdline' to see the kernel parameters that the kernel was started with Actual Results: The contents of /proc/cmdline is truncated to the first 28 characters Expected Results: The contents of /proc/cmdline should contain up to 255 chars Additional info: Possibly found the problem in pxe-linux/nbp.linux/prepare.c line 18: typedef struct s_bootsect_table { unsigned char reserved1[32]; unsigned cmdline_magic; unsigned cmdline_offset; unsigned char reserved2[461]; ... line 214: strcpy(bootsect.reserved2, cmdline); // copy the kernel // params to bootsect line 258: memset(&((UINT8 *)&bootsect)[0x40], 0, 0x12); // fill bootsect // starting at // offset 64 Line 258 appears to be the culprit - reserved2 starts at offset 36 and we blank it from 64 onwards, leaving only the first 28 characters of the kernel parameters.
Created attachment 79946 [details] Patch proposed by richard.coley
Created attachment 80104 [details] patch against pxe-0.1-33.src.rpm to fix problem with long cmdline
Created attachment 80105 [details] modified pxe.spec file with pxe-1.0-prepare.patch
The bug is fixed. Please, include patch into errata.
this is a duplicate of 30837