How can I debug in the PXE initrd when clients boot ? |
In the early stage in PXE initrd when client boots, there is NO log file. However, you can try to debug by:
1. edit /usr/lib/mkpxeinitrd-net/initrd-skel/linuxrc
or
"/usr/lib/mkpxeinitrd-net/initrd-skel/linuxrc/udhcpc-post"
insert some code to debug, or just put a shell (/bin/sh) so you can enter the shell.
2. run "mknic-nbi" to generate the PXE initrd.
3. reboot the client, then you can see some logs or enter the shell.
|
|