Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176184738
D12466.id33335.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.id33335.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, Oct 17, 6:57 PM (7 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40962429
Default Alt Text
D12466.id33335.diff (822 B)
Attached To
Mode
D12466: Allow LOADER_TFTP_SUPPORT to work again
Attached
Detach File
Event Timeline
Log In to Comment