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

Submitted by:  Fabian Vogt <fvogt>
Submitted on:  Thu 26 Nov 2015 09:17:45 AM UTC  
 
Category: NetworkSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: Git masterReproducibility: Every Time
Planned Release: None

(Jump to the original submission 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>
Project 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>
Project 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>
Project 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:

Does the patch work for you?

https://lists.gnu.org/archive/html/grub-devel/2015-02/msg00151.html

Andrei Borzenkov <arvidjaar>
Project 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 16 Dec 2015 06:40:40 PM UTCarvidjaarStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1