summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2019-02-06 11:24:26 +0000
committerRob Johnston <rob.johnston@joyent.com>2019-02-19 21:37:02 +0000
commitd024ad7e44b1e11d9250ea9be53265a22d7b368d (patch)
tree5aabb873073f442178c1f0d6ba701599c650f254 /usr/src
parent69c5698c2c76ff306f1849c84518c330d51d5b29 (diff)
downloadillumos-joyent-d024ad7e44b1e11d9250ea9be53265a22d7b368d.tar.gz
OS-7594 Disable efinet support in Loader to workaround TRITON-1191
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/boot/sys/boot/efi/loader/Makefile.com9
-rw-r--r--usr/src/boot/sys/boot/efi/loader/conf.c8
2 files changed, 17 insertions, 0 deletions
diff --git a/usr/src/boot/sys/boot/efi/loader/Makefile.com b/usr/src/boot/sys/boot/efi/loader/Makefile.com
index be81482ae1..011ec84d52 100644
--- a/usr/src/boot/sys/boot/efi/loader/Makefile.com
+++ b/usr/src/boot/sys/boot/efi/loader/Makefile.com
@@ -12,6 +12,8 @@
#
# Copyright 2016 Toomas Soome <tsoome@me.com>
#
+# Copyright (c) 2019, Joyent, Inc.
+#
include $(SRC)/Makefile.master
include $(SRC)/boot/Makefile.version
@@ -87,6 +89,13 @@ CPPFLAGS += -I$(SRC)/uts/intel/sys/acpi
CPPFLAGS += -I$(PNGLITE)
CPPFLAGS += -DNO_PCI -DEFI
+#
+# Using SNP from loader causes issues when chain-loading iPXE, as described in
+# TRITON-1191. While the exact problem is not known, we have no use for SNP, so
+# we'll just disable it.
+#
+CPPFLAGS += -DLOADER_DISABLE_SNP
+
# Export serial numbers, UUID, and asset tag from loader.
smbios.o := CPPFLAGS += -DSMBIOS_SERIAL_NUMBERS
# Use little-endian UUID format as defined in SMBIOS 2.6.
diff --git a/usr/src/boot/sys/boot/efi/loader/conf.c b/usr/src/boot/sys/boot/efi/loader/conf.c
index 5a7bfede26..854230a204 100644
--- a/usr/src/boot/sys/boot/efi/loader/conf.c
+++ b/usr/src/boot/sys/boot/efi/loader/conf.c
@@ -24,6 +24,10 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * Copyright (c) 2019, Joyent, Inc.
+ */
+
#include <sys/cdefs.h>
#include <stand.h>
@@ -36,7 +40,9 @@ struct devsw *devsw[] = {
&efipart_fddev,
&efipart_cddev,
&efipart_hddev,
+#ifndef LOADER_DISABLE_SNP
&efinet_dev,
+#endif
&zfs_dev,
NULL
};
@@ -57,7 +63,9 @@ struct fs_ops *file_system[] = {
};
struct netif_driver *netif_drivers[] = {
+#ifndef LOADER_DISABLE_SNP
&efinetif,
+#endif
NULL
};