Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F172476237
D12466.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
822 B
Referenced Files
None
Subscribers
None
D12466.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D12466: Allow LOADER_TFTP_SUPPORT to work again
Attached
Detach File
Event Timeline
Log In to Comment