bugGNU GRUB - Bugs: bug #46540, configfile command after net_bootp...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #46540: configfile command after net_bootp fails with multiple NICs

Submitter:  Fabian Vogt <fvogt>
Submitted:  Thu 26 Nov 2015 09:17:45 AM UTC
   
 
Category:  Network Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  Git master
Release:  Reproducibility:  Every Time
Planned Release:  None

Jump to the original submission

Wed 16 Dec 2015 06:40:40 PM UTC, comment #7: 

Should be fixed by 609c049dcc318fae3af1ba29f0ceb348172769f0; please reopen if needed.

Andrei Borzenkov <arvidjaar>
Group Member
Fri 27 Nov 2015 09:22:45 AM UTC, comment #6: 

/uEFI/grub.cfg is from tftp, so it depends on network being functional.

Fabian Vogt <fvogt>
Fri 27 Nov 2015 09:17:00 AM UTC, comment #5: 

Could you give more details about your configuration (in particular, where grub.cfg comes from)? I was not able to reproduce it using simple-minded injected errors in early config, and I still like to understand where it fails.

Andrei Borzenkov <arvidjaar>
Group Member
Thu 26 Nov 2015 10:06:57 AM UTC, comment #4: 

Yep. that one works fine.

Fabian Vogt <fvogt>
Thu 26 Nov 2015 09:57:17 AM UTC, comment #3: 

And follow-up patch in the same thread?

Andrei Borzenkov <arvidjaar>
Group Member
Thu 26 Nov 2015 09:52:07 AM UTC, comment #2: 

No difference.
AFAIK it does not even leave the early config as the configfile command jumps to normal mode directly, so it doesn't get to that point.

Fabian Vogt <fvogt>
Thu 26 Nov 2015 09:41:16 AM UTC, comment #1: 
Andrei Borzenkov <arvidjaar>
Group Member
Thu 26 Nov 2015 09:17:45 AM UTC, original submission:  

GRUB2 is loaded over EFI network boot.
It has an embedded/early config (simplified):

set net_default_server=10.161.0.100
net_bootp
echo "Loading config..."
configfile /uEFI/grub.cfg

With a single NIC, this works as expected,
but with multiple NICs, when only one is connected and can get a reply, net_bootp prints a warning (expected), the configfile command has no effect and grub shows the usual fallback prompt.

The message "Loading config..." is always visible.
A workaround is to add "while(grub_error_pop()){};" at the end of grub_cmd_bootp in grub-code/net/bootp.c.

Fabian Vogt <fvogt>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by arvidjaar (Posted a comment)
  • -email is unavailable- added by fvogt (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-12-16 arvidjaar StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code