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

Bug#826844: marked as done (netcfg ignoring BOOTF= in kernel cmdline)



Your message dated Sun, 30 Oct 2016 13:15:52 +0100
with message-id <fd731809-574e-2b1e-fdaf-453264e7c0a8@debian.org>
and subject line Re: Bug#826844: netcfg ignoring BOOTF= in kernel cmdline
has caused the Debian Bug report #826844,
regarding netcfg ignoring BOOTF= in kernel cmdline
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
826844: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826844
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: netcfg
Version: 1.131+deb8u1
Severity: important


I am trying to initiate a full hands off installation of Jessie on a remote server.
We use iPXE to pass boot information, and I use:
BOOTIF=${netX/mac}

to have iPXE pass the MAC of the boot interface to Jessie d-i. However netcfg refuses to parse the MAC from /proc/cmdline even though I can see it there.

Here is the output from /var/log/syslog (DEBCONF_DEBUG=5 is set) (paraphrased because I'm typing this out by hand):
~ # grep BOOTIF /var/log/syslog
kernel: [0.00000] Command line: auto=true priority=critical url="" href="http://thebooting.dev2.internal/preseed">http://thebooting.dev2.internal/preseed interface=auto DEBCONF_DEBUG=5 BOOTIF=0c:c4:7a:8e:ad:4a
kernel: [0.00000] Kernel command line: auto=true priority=critical url="" href="http://thebooting.dev2.internal/preseed">http://thebooting.dev2.internal/preseed interface=auto DEBCONF_DEBUG=5 BOOTIF=0c:c4:7a:8e:ad:4a
netcfg[780]: INFO: Could not find valid BOOTIF= entry in /proc/cmdline

This is me checking /proc/cmdline:
~ # cat /proc/cmdline
auto=true priority=critical url="" href="http://thebooting.dev2.internal/preseed">http://thebooting.dev2.internal/preseed interface=auto DEBCONF_DEBUG=5 BOOTIF=0c:c4:7a:8e:ad:4a

I've tried to look at the source (master branch from git://anonscm.debian.org/d-i/netcfg.git) to try and figure out what's wrong, but I am not a C developer.
Line 644 seems to be confusing because it's comparing 'bootif_len' to 20 [(6 * 3 - 1) + 3]
But MAC addresses are 15 characters long (including the colons).

I am going to code my way around this using the preseed/early_command for setting the interface. But it would be nice if this issue was resolved. Let me know if you need more information.

The installer information is:
Debian GNU/Linux installer
8 (jessie) - installer build 20150422+deb8u3

Thanks.

--- End Message ---
--- Begin Message ---
Hi,

On 10/24/2016 02:17 AM, James Mackie wrote:
> Thanks for your response. Yeah I actually figured that out after looking
> looking at the netcfg code and seeing the "01-" being purposefully
> excluded from the address capture. So then I looked up the specification
> for PXELINUX and saw the hardware type at the start.
> 
> So, I've just hardcoded (eww) a "01-" before the ${netX/mac} in the iPXE
> config.
> 
> Thanks for the answer! And sorry for not updating this sooner. This can
> probably be closed as a non-issue, but not sure if it's worth while
> adding a comment to the code, or something.

thanks for the confirmation. I'll go ahead and close the bug.

Kind regards
Philipp Kern

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply to: