Page MenuHomeFreeBSD

D12466.id.diff
No OneTemporary

D12466.id.diff

Index: sys/boot/common/Makefile
===================================================================
--- sys/boot/common/Makefile
+++ sys/boot/common/Makefile
@@ -7,4 +7,9 @@
MAN+= zfsloader.8
.endif
+# Enable PXE TFTP or NFS support, not both.
+.if defined(LOADER_TFTP_SUPPORT)
+CFLAGS+= -DLOADER_TFTP_SUPPORT
+.endif
+
.include <bsd.prog.mk>
Index: sys/boot/common/dev_net.c
===================================================================
--- sys/boot/common/dev_net.c
+++ sys/boot/common/dev_net.c
@@ -402,7 +402,11 @@
ptr = rootpath;
/* Fallback for compatibility mode */
if (netproto == NET_NONE) {
+#ifdef LOADER_TFTP_SUPPORT
+ netproto = NET_TFTP;
+#else /* LOADER_NFS_SUPPORT */
netproto = NET_NFS;
+#endif
(void)strsep(&ptr, ":");
if (ptr != NULL) {
addr = inet_addr(rootpath);

File Metadata

Mime Type
text/plain
Expires
Sat, Sep 19, 6:03 PM (2 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39153439
Default Alt Text
D12466.id.diff (822 B)

Event Timeline