7683 loader: conf.d reader needs to check for boot.tftproot.server

Review Request #301 - Created Dec. 21, 2016 and submitted

Information
Toomas Soome
illumos-gate
7683
0a8c99f...
Reviewers
general

7683 loader: conf.d reader needs to check for boot.tftproot.server

Till "7567 Netboot: allow both tftpfs and nfs in both pxeboot and loader.efi" the network boot is based on tftp only (with nfs boot being compile time option), and so the /boot/conf.d snippet processing did not work for tftp, as there is no way to detect the files in conf.d, so the snippet feature was blocked based on current device name (pxe0:).

With both tftp and nfs enabled, we need to implement better detection of tftp, and 7567 does provide us boot.tftpboot. environment variables, and we can use one of the env variables to filter out the tftp case.

This change does implement simple check:
if (currdev is pxe or net device)
if (boot.tftproot.server is set) exit processing conf.d.

otherwise read conf.d.

both pxeboot and loader64.efi will access conf.d with nfsroot.

Toomas Soome
Toomas Soome
Adam Števko
Robert Mustacchi
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...