mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
If the pxe client is told to use / as the root path, honour that rather
of trying to mount /pxeroot instead. PR: i386/106493 Submitted by: Andrey Russev MFC after: 1 month
This commit is contained in:
parent
b8e83993c5
commit
58564ca597
1 changed files with 1 additions and 1 deletions
|
|
@ -282,7 +282,7 @@ pxe_open(struct open_file *f, ...)
|
|||
bootp(pxe_sock, BOOTP_PXE);
|
||||
if (rootip.s_addr == 0)
|
||||
rootip.s_addr = bootplayer.sip;
|
||||
if (!rootpath[1])
|
||||
if (!rootpath[0])
|
||||
strcpy(rootpath, PXENFSROOTPATH);
|
||||
|
||||
for (i = 0; rootpath[i] != '\0' && i < FNAME_SIZE; i++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue