| | 281 | * 測試讓 Lenny 產生內含 的 DRBL initrd.pxe 核心。 |
| | 282 | * 手動修改 initrd-pxe.2.6.26-2-amd64.img |
| | 283 | {{{ |
| | 284 | # cd /tftpboot/nbi_img |
| | 285 | /tftpboot/nbi_img# mv initrd-pxe.2.6.26-2-amd64.img initrd-pxe.2.6.26-2-amd64.img.gz |
| | 286 | /tftpboot/nbi_img# gunzip initrd-pxe.2.6.26-2-amd64.img.gz |
| | 287 | /tftpboot/nbi_img# mkdir temp |
| | 288 | /tftpboot/nbi_img# cd temp |
| | 289 | /tftpboot/nbi_img/temp# cpio -i < ../initrd-pxe.2.6.26-2-amd64.img |
| | 290 | /tftpboot/nbi_img/temp# mkdir lib/firmware |
| | 291 | /tftpboot/nbi_img/temp# cp /lib/firmware/* lib/firmware/ |
| | 292 | /tftpboot/nbi_img/temp# find . | cpio -H newc -o | gzip > ../initrd-pxe.2.6.26-2-amd64.img |
| | 293 | }}} |
| | 294 | * [參考] [http://moto.debian.org.tw/viewtopic.php?t=11628 修改 initrd 之後,發生錯誤] |
| | 295 | {{{ |
| | 296 | cpio 有很多種格式,用來開機的要用 cpio -H newc -o,必須用 newc 格式才可以正常開機 |
| | 297 | }}} |
| | 298 | |