| 67 | * 手工打造支援 firmware-bnx 的 initrd-pxe.2.6.22.19-lustre-686.img |
| 68 | * 首先要先瞭解 drblsrv-offline 所產生的 initrd-pxe.2.6.22.19-lustre-686.img 與系統產生的 initrd.img-2.6.22.19-lustre-686 有何差別 |
| 69 | {{{ |
| 70 | bio:~$ uname -a |
| 71 | Linux bio 2.6.22.19-lustre-686 #2 SMP Tue Aug 26 00:01:59 UTC 2008 i686 GNU/Linux |
| 72 | bio:~$ sudo /opt/drbl/sbin/drblsrv-offline -s `uname -r` |
| 73 | bio:~$ mkdir -p temp temp2 |
| 74 | bio:~$ cd temp |
| 75 | bio:~/temp$ cat /boot/initrd.img-2.6.22.19-lustre-686 | gunzip | cpio -i |
| 76 | bio:~/temp$ cd .. |
| 77 | bio:~$ cd temp2/ |
| 78 | bio:~/temp2$ cat /tftpboot/nbi_img/initrd-pxe.2.6.22.19-lustre-686.img | gunzip | sudo cpio -i |
| 79 | }}} |
| 80 | * 光是從 diff -r temp temp2 的結果來看,兩者的差異很大。而 firmware.agent 在系統產生的 initrd.img 中,是透過 udev 的 rules 被執行的。 |
| 81 | {{{ |
| 82 | bio:~/temp$ grep firmware.agent * -r --color |
| 83 | etc/udev/rules.d/80-drivers.rules:SUBSYSTEM=="firmware", RUN+="firmware.agent" |
| 84 | }}} |