manu
c328d568d4
TFTPROOT loads the RAMdisk through TFTP at boot time. It needs the
network to be functionnal, and therefore must be called after config_finalize(). Unfortunately, config_finalize() attaches md0 through mdattach(), and when tftproot_getfile() attempts to attach it later by calling mdattach() again, it gets a failure. This change checks for the RAMdisk size in mdattach(). If it is zero, then the RAMdisk has not been loaded yet, and nothing is done. It will be attached later when tftproot_getfile() will call mdattach()
…
…
…
…
…
…
…
…
…
…
…
Description
No description provided
Languages
C
85.3%
Roff
7.2%
Assembly
3.1%
Shell
1.7%
Makefile
1.2%
Other
0.9%