Debian 的 diskless 套件與 DRBL 在利用 PXE 進行網路開機的時候,都採用 initrd 來透過 NFS 掛載 root file system。這和我直接在 syslinux/pxelinux 裡用 append root=/dev/nfs ip=both nfsroot=/path/to/root 來指定 nfsroot file system 的作法不太一樣。

這樣作的好處是 pxelinux 的組態檔可以少掉很多;我的作法每一台 netboot 主機都需要一個 pxelinux 組態檔。不過,省卻 pxelinux 的多餘組態檔所交換來的是要自行組態 initrd。在 Debian 下有 initrd-netboot-toolsdiskless 兩個套件可以幫忙。

如果想參考一下 DRBL 製作的 initrd,請先用 gunzip 解開 image 檔,再用 ext2 掛到 loopback 裝置上。

Posted by yungyuc at 20:20, 0 comment, 0 trackback.
Add a trackback
Add a comment

Your name. (required)

Your personal website. (optional)

Your email address. Will not show in page. (suggested, but optional)

Text format is "Plain Text".

Enter "wqhBq"
© hover year to navigate month: powered by django