| 41 | |
| 42 | == 'include' chain == |
| 43 | * include <filename> で別のファイルに書かれたsyslinuxの設定を読み込むことが出来る |
| 44 | * その場合、各設定ファイルでの<filename>のパスは一致している必要がある |
| 45 | * PXE bootでの例 |
| 46 | 1. dhcpd.conf |
| 47 | {{{ |
| 48 | filename "/pxelinux.0"; |
| 49 | }}} |
| 50 | 1. /srv/tftp/pxelinux.cfg/default |
| 51 | {{{ |
| 52 | LABEL lucid-amd64 |
| 53 | include lucid-amd64/ubuntu-installer/amd64/boot-screens/menu.cfg |
| 54 | default lucid-amd64/ubuntu-installer/amd64/boot-screens/vesamenu.c32 |
| 55 | }}} |
| 56 | 1. /srv/tftp/lucid-amd64/ubuntu-installer/amd64/boot-screens/menu.cfg |
| 57 | {{{ |
| 58 | (snip) |
| 59 | include ubuntu-installer/amd64/boot-screens/stdmenu.cfg |
| 60 | include ubuntu-installer/amd64/boot-screens/text.cfg |
| 61 | (snip) |
| 62 | }}} |
| 63 | * この時点で「ubuntu-installer/amd64/boot-screens/」とパスが変わっているため、正常に読み込まれない |
| 64 | 1. /srv/tftp/lucid-amd64/ubuntu-installer/amd64/boot-screens/stdmenu.cfg (<= 正常に読み込まれない) |
| 65 | {{{ |
| 66 | menu background ubuntu-installer/amd64/boot-screens/splash.png |
| 67 | (snip) |
| 68 | }}} |
| 69 | * splash.pngを指定しているstdmenu.cfgが正常に読み込まれないため、Ubuntuのロゴは表示されない |
| 70 | 1. /srv/tftp/lucid-amd64/ubuntu-installer/amd64/boot-screens/text.cfg (<= 正常に読み込まれない) |
| 71 | {{{ |
| 72 | default install |
| 73 | label install |
| 74 | menu label ^Install |
| 75 | menu default |
| 76 | kernel ubuntu-installer/amd64/linux |
| 77 | append vga=normal initrd=ubuntu-installer/amd64/initrd.gz -- quiet |
| 78 | }}} |
| 79 | * text.cfgも正常に読み込まれないため、kernelが指定できず、画面には以下のように表示される。 |
| 80 | {{{ |
| 81 | Invalid or corrupt kernel image. |
| 82 | boot: |
| 83 | }}} |
| 84 | 1. /srv/tftp/lucid-amd64/ubuntu-installer/amd64/boot-screens/menu.cfg に戻る |
| 85 | 1. 以上を無限ループする |
| 86 | * /var/log/daemon.log |
| 87 | {{{ |
| 88 | Dec 5 15:14:27 ubuntu atftpd[5092]: Serving /pxelinux.0 to 192.168.XYZ.253:2070 |
| 89 | (snip) |
| 90 | |
| 91 | Dec 5 15:14:27 ubuntu atftpd[5092]: Serving /pxelinux.cfg/default to 192.168.XYZ.253:57099 |
| 92 | Dec 5 15:14:27 ubuntu atftpd[5092]: Serving /lucid-amd64/ubuntu-installer/amd64/boot-screens/menu.cfg to 192.168.XYZ.253:57100 |
| 93 | Dec 5 15:14:27 ubuntu atftpd[5092]: Serving /ubuntu-installer/amd64/boot-screens/stdmenu.cfg to 192.168.XYZ.253:57101 |
| 94 | Dec 5 15:14:27 ubuntu atftpd[5092]: Serving /ubuntu-installer/amd64/boot-screens/text.cfg to 192.168.XYZ.253:57102 |
| 95 | Dec 5 15:14:27 ubuntu atftpd[5092]: Serving /ubuntu-installer/amd64/boot-screens/amdtext.cfg to 192.168.XYZ.253:57103 |
| 96 | Dec 5 15:14:27 ubuntu atftpd[5092]: Serving /ubuntu-installer/amd64/boot-screens/gtk.cfg to 192.168.XYZ.253:57104 |
| 97 | (snip) |
| 98 | |
| 99 | Dec 5 15:14:27 ubuntu atftpd[5092]: Serving /ubuntu-installer/amd64/boot-screens/adgtk.cfg to 192.168.XYZ.253:57109 |
| 100 | Dec 5 15:14:27 ubuntu atftpd[5092]: Serving /ubuntu-installer/amd64/boot-screens/adamdgtk.cfg to 192.168.XYZ.253:57110 |
| 101 | Dec 5 15:14:30 ubuntu atftpd[5092]: Serving /lucid-amd64/ubuntu-installer/amd64/boot-screens/vesamenu.c32 to 192.168.XYZ.253:57111 |
| 102 | Dec 5 15:14:30 ubuntu atftpd[5092]: Serving /pxelinux.cfg/default to 192.168.XYZ.253:57112 |
| 103 | Dec 5 15:14:30 ubuntu atftpd[5092]: Serving /lucid-amd64/ubuntu-installer/amd64/boot-screens/menu.cfg to 192.168.XYZ.253:57113 |
| 104 | Dec 5 15:14:30 ubuntu atftpd[5092]: Serving /ubuntu-installer/amd64/boot-screens/stdmenu.cfg to 192.168.XYZ.253:57114 |
| 105 | Dec 5 15:14:30 ubuntu atftpd[5092]: Serving /ubuntu-installer/amd64/boot-screens/text.cfg to 192.168.XYZ.253:57115 |
| 106 | Dec 5 15:14:30 ubuntu atftpd[5092]: Serving /ubuntu-installer/amd64/boot-screens/amdtext.cfg to 192.168.XYZ.253:57116 |
| 107 | }}} |