Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Aug 2015 07:42:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 202098] [EFI] boot/loader.efi: handle parameters and override BOOTP root-path
Message-ID:  <bug-202098-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202098

            Bug ID: 202098
           Summary: [EFI] boot/loader.efi: handle parameters and override
                    BOOTP root-path
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: ganael.laplanche@corp.ovh.com

Created attachment 159563
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=159563&action=edit
Initialize environment using argv[]

Hi,

As discussed here on -hackers@ :

https://lists.freebsd.org/pipermail/freebsd-hackers/2015-August/048071.html

and for the record, here are two simple patches that allows the EFI loader to
set environment variables from arguments and locally override the root path
offered through BOOTP (through a new variable called
"dhcp.root-path.override").

This allows to chainload loader.efi and pass your root-path (and any other
variable) this way (e.g. with iPXE) :

#!ipxe
chain http://path.to/loader.efi dhcp.root-path.override=server_ip:/path/to/root
some_other_var=value

Those patches are quite basic and will probably need refactoring, but you get
the idea :p

Regards,
Ganael.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-202098-8>