{"id":258,"date":"2007-10-06T00:00:00","date_gmt":"2007-10-06T00:00:00","guid":{"rendered":"http:\/\/www.strongd.net\/?p=258"},"modified":"2007-10-06T00:00:00","modified_gmt":"2007-10-06T00:00:00","slug":"Hacking initrd.img - \u6dfb\u52a0\u7f51\u5361\u9a71\u52a8\uff0c\u7f51\u7edc\u5b89\u88c5 Linux","status":"publish","type":"post","link":"https:\/\/www.strongd.net\/?p=258","title":{"rendered":"Hacking initrd.img &#8211; \u6dfb\u52a0\u7f51\u5361\u9a71\u52a8\uff0c\u7f51\u7edc\u5b89\u88c5 Linux"},"content":{"rendered":"<p><P id=subtitle><STRONG><FONT face=\"arial black\">\u5982\u4f55\u5728initrd.img\u4e2d\u6dfb\u52a0\u9a71\u52a8<\/FONT><\/STRONG><\/P><br \/>\n<P>2007 \u5e74 9 \u6708 20 \u65e5<\/P><br \/>\n<BLOCKQUOTE>\u672c\u6587\u901a\u8fc7\u5c06\u7f51\u5361\u9a71\u52a8\u52a0\u5165\u5230 initrd.img \u4e2d\uff0c\u4f7f Linux \u5185\u6838\u5728\u542f\u52a8\u7684\u8fc7\u7a0b\u4e2d\u80fd\u6b63\u786e\u8bc6\u522b\u5e76\u52a0\u8f7d\u7f51\u5361\u9a71\u52a8\uff0c\u4ece\u800c\u4f7f\u7f51\u7edc\u5b89\u88c5\u5f97\u4ee5\u8fdb\u884c\u3002 <\/BLOCKQUOTE><!--START RESERVED FOR FUTURE USE INCLUDE FILES--><!-- include java script once we verify teams wants to use this and it will work on dbcs and cyrillic characters --><!--END RESERVED FOR FUTURE USE INCLUDE FILES--><br \/>\n<P><A name=N1006E><SPAN class=atitle>\u524d\u8a00 <\/SPAN><\/A><\/P><br \/>\n<P>\u7f51\u7edc\u5b89\u88c5 Linux \u5e76\u4e0d\u662f\u4e00\u4e2a\u65b0\u9c9c\u7684\u8bdd\u9898\uff0c\u5176\u8fc7\u7a0b\u4e5f\u4e0d\u662f\u4e00\u4e2a\u8f7b\u677e\u7684\u4f53\u9a8c\u3002\u4e3a\u4e86\u8ba9\u673a\u5668\u80fd\u901a\u8fc7\u7f51\u7edc\u6765\u5b89\u88c5 Linux\uff0c\u5982\u679c\u8fd8\u9700\u8981\u914d\u5408 kickstart \u6765\u81ea\u52a8\u5316 Linux \u7684\u5b89\u88c5\u8fc7\u7a0b\u7684\u8bdd\uff0c\u7528\u6237\u9700\u8981\u505a\u5927\u91cf\u7684\u914d\u7f6e\u5de5\u4f5c\u3002\u4f17\u6240\u5468\u77e5\uff0c\u7528\u6237\u9700\u8981\u6311\u9009\u4e00\u53f0\u673a\u5668\u4f5c\u4e3a\u670d\u52a1\u5668\uff0c\u7136\u540e\u5728\u8fd9\u53f0\u673a\u5668\u4e0a\u914d\u7f6e DHCP, TFTP, NFS\/Http\/Ftp, pxelinux, kickstart \u7b49\u4e00\u7cfb\u5217\u7684\u4e1c\u897f\u3002<\/P><br \/>\n<P>\u4f46\u662f\u6240\u6709\u7684\u8fd9\u4e00\u5207\u80fd\u6210\u529f\u8fd0\u4f5c\u90fd\u81f3\u5c11\u6709\u4e00\u4e2a\u524d\u63d0\u6761\u4ef6\uff1a\u6211\u4eec\u6240\u5b89\u88c5\u7684 Linux \u80fd\u6b63\u786e\u7684\u8bc6\u522b\u5e76\u9a71\u52a8\u6240\u6709\u5ba2\u6237\u673a\u7684\u7f51\u5361\u3002\u5982\u679c\u7f51\u5361\u9a71\u52a8\u4e0d\u4e86\uff0c\u5ba2\u6237\u673a\u6839\u672c\u65e0\u6cd5\u901a\u8fc7\u7f51\u7edc\u4ece\u670d\u52a1\u5668\u53d6\u5230\u6240\u9700\u8981\u7684\u4e1c\u897f\uff0c\u7f51\u7edc\u5b89\u88c5 Linux \u5c31\u65e0\u4ece\u8c08\u8d77\u4e86\u3002<\/P><br \/>\n<P>\u672c\u6587\u901a\u8fc7\u5c06\u7f51\u5361\u9a71\u52a8\u52a0\u5165\u5230 initrd.img \u4e2d\uff0c\u4f7f Linux \u5185\u6838\u5728\u542f\u52a8\u7684\u8fc7\u7a0b\u4e2d\u80fd\u6b63\u786e\u8bc6\u522b\u5e76\u52a0\u8f7d\u7f51\u5361\u9a71\u52a8\uff0c\u4ece\u800c\u4f7f\u7f51\u7edc\u5b89\u88c5\u5f97\u4ee5\u8fdb\u884c\u3002\u672c\u6587\u5e76\u4e0d\u8bb2\u8ff0\u7f51\u7edc\u5b89\u88c5 Linux \u7684\u80cc\u666f\u77e5\u8bc6\uff08\u5982\u4e3a\u4ec0\u4e48\u9700\u8981\u7f51\u7edc\u5b89\u88c5\uff0c\u7f51\u7edc\u5b89\u88c5\u7684\u597d\u5904\u7b49\uff09\u3001\u5177\u4f53\u914d\u7f6e\u548c\u64cd\u4f5c\u6b65\u9aa4\uff08\u4e5f\u5c31\u662f\u914d\u7f6e DHCP\uff0cTFTP\uff0cpxelinux \u7b49\u5185\u5bb9\uff09\u3002\u6b64\u5916\uff0c\u672c\u6587\u9700\u8981\u8bfb\u8005\u6709\u719f\u7ec3\u7684 Linux \u64cd\u4f5c\u7ecf\u9a8c\u548c Shell \u7f16\u7a0b\u7684\u57fa\u672c\u77e5\u8bc6\uff0c\u800c\u4e14\u5bf9 Linux \u542f\u52a8\u8fc7\u7a0b\u548c\u9a71\u52a8\u7a0b\u5e8f\u6709\u57fa\u672c\u7684\u4e86\u89e3\u3002<\/P><br \/>\n<P>\u6ce8\uff1a\u6240\u6709\u88ab\u5b89\u88c5\u7684\u673a\u5668\u6211\u4eec\u79f0\u4e4b\u4e3a\u5ba2\u6237\u673a\uff0c\u63d0\u4f9b\u7f51\u7edc\u5b89\u88c5\u670d\u52a1\u7684\u673a\u5668\u6211\u4eec\u79f0\u4e4b\u4e3a\u670d\u52a1\u5668<\/P><BR><br \/>\n<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0><br \/>\n<TBODY><br \/>\n<TR><br \/>\n<TD><IMG height=1 alt=\"\" src=\"http:\/\/www.ibm.com\/i\/v14\/rules\/blue_rule.gif\" width=\"100%\"><BR><IMG height=6 alt=\"\" src=\"http:\/\/www.ibm.com\/i\/c.gif\" width=8 border=0><\/TD><\/TR><\/TBODY><\/TABLE><br \/>\n<TABLE class=no-print cellSpacing=0 cellPadding=0 align=right><br \/>\n<TBODY><br \/>\n<TR align=right><br \/>\n<TD><IMG height=4 alt=\"\" src=\"http:\/\/www.ibm.com\/i\/c.gif\" width=\"100%\"><BR><br \/>\n<TABLE cellSpacing=0 cellPadding=0 border=0><br \/>\n<TBODY><br \/>\n<TR><br \/>\n<TD vAlign=center><BR><\/TD><br \/>\n<TD vAlign=top align=right><A class=fbox href=\"http:\/\/www.ibm.com\/developerworks\/cn\/linux\/l-linux-netinst\/index.html#main\"><B><FONT color=#996699><\/FONT><\/B><\/A><\/TD><\/TR><\/TBODY><\/TABLE><\/TD><\/TR><\/TBODY><\/TABLE><BR><BR><br \/>\n<P><A name=N10084><SPAN class=atitle>\u5f00\u59cb\u4e4b\u524d\u7684\u5efa\u8bae <\/SPAN><\/A><\/P><br \/>\n<P>\u5efa\u8bae\uff1a\u5982\u679c\u60a8\u78b0\u5230\u4e86\u524d\u8a00\u4e2d\u6240\u63cf\u8ff0\u7684\u95ee\u9898\u7684\u8bdd\uff0c\u6700\u597d\u7684\u89e3\u51b3\u65b9\u6cd5\u662f \u2013 \u627e\u4e00\u4e2a\u80fd\u9a71\u52a8\u5ba2\u6237\u673a\u7f51\u5361\u7684 Linux Distribution\uff0c\u8fd9\u6837\u80fd\u7701\u5374\u5f88\u591a\u9ebb\u70e6\u3002<\/P><br \/>\n<P>\u4f46\u5728\u73b0\u5b9e\u73af\u5883\u4e0b\uff0c\u5f88\u591a\u539f\u56e0\u4f1a\u5bfc\u81f4\u6211\u4eec\u65e0\u6cd5\u9009\u62e9\u5b89\u88c5\u4e00\u4e2a\u65b0\u7684 Linux \u53d1\u884c\u7248\u3002\u539f\u56e0\u6709\u5f88\u591a\uff0c\u6bd4\u5982\uff1a<\/P><br \/>\n<UL><br \/>\n<LI>\u5ba2\u6237\u4e0d\u540c\u610f\u6211\u4eec\u9009\u7528\u5176\u4ed6\u7684 Linux \u7248\u672c\uff0c\u56e0\u4e3a\u5ba2\u6237\u6709\u5927\u91cf\u7684\u5e94\u7528\u7a0b\u5e8f\u5df2\u7ecf\u5728\u67d0\u4e2aLinux \u7248\u672c\u4e0a\u7f16\u8bd1\uff0c\u8fd0\u884c\u826f\u597d\u4e86\uff0c\u66f4\u6362 Linux \u53d1\u884c\u7248\u4f1a\u5e26\u6765\u5e94\u7528\u7684\u79fb\u690d\u95ee\u9898<br \/>\n<LI>\u5ba2\u6237\u62e5\u6709\u4e00\u4e9b\u7279\u6b8a\u7684\u786c\u4ef6\uff0c\u800c\u8fd9\u4e9b\u786c\u4ef6\u53ea\u6709\u57fa\u4e8e\u67d0\u4e2a Linux \u53d1\u884c\u7248\u7684\u9a71\u52a8\u3002\u66f4\u6362 Linux \u53d1\u884c\u7248\uff0c\u4f1a\u5bfc\u81f4\u8fd9\u4e9b\u786c\u4ef6\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c<br \/>\n<LI>\u6ca1\u6709\u4e00\u4e2a Linux \u53d1\u884c\u7248\u80fd\u9a71\u52a8\u5ba2\u6237\u673a\u7684\u7f51\u5361\u3002\u7f51\u5361\u5382\u5546\u53ea\u7ed9\u6211\u4eec\u63d0\u4f9b\u4e86\u67d0\u4e2a Linux \u53d1\u884c\u7248\u4e0a\u7684\u9a71\u52a8\uff0c\u4e00\u5207\u90fd\u8981 DIY<br \/>\n<LI>\u60a8\u6709\u7740\u5f3a\u70c8\u7684DIY\u60c5\u611f\uff0c\u9762\u5bf9\u95ee\u9898\u4e0d\u662f\u5bfb\u6c42\u522b\u4eba\u7684\u89e3\u51b3\u65b9\u6848\u800c\u662f\u4e00\u5207\u90fd\u8981\u81ea\u5df1\u514b\u670d \u2013 \u6beb\u65e0\u7591\u95ee\uff0c\u60a8\u5c31\u662f\u672c\u6587\u6700\u9002\u5408\u7684\u8bfb\u8005 <\/LI><\/UL><BR><br \/>\n<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0><br \/>\n<TBODY><br \/>\n<TR><br \/>\n<TD><IMG height=1 alt=\"\" src=\"http:\/\/www.ibm.com\/i\/v14\/rules\/blue_rule.gif\" width=\"100%\"><BR><IMG height=6 alt=\"\" src=\"http:\/\/www.ibm.com\/i\/c.gif\" width=8 border=0><\/TD><\/TR><\/TBODY><\/TABLE><br \/>\n<TABLE class=no-print cellSpacing=0 cellPadding=0 align=right><br \/>\n<TBODY><br \/>\n<TR align=right><br \/>\n<TD><IMG height=4 alt=\"\" src=\"http:\/\/www.ibm.com\/i\/c.gif\" width=\"100%\"><BR><br \/>\n<TABLE cellSpacing=0 cellPadding=0 border=0><br \/>\n<TBODY><br \/>\n<TR><br \/>\n<TD vAlign=center><BR><\/TD><br \/>\n<TD vAlign=top align=right><A class=fbox href=\"http:\/\/www.ibm.com\/developerworks\/cn\/linux\/l-linux-netinst\/index.html#main\"><B><FONT color=#996699><\/FONT><\/B><\/A><\/TD><\/TR><\/TBODY><\/TABLE><\/TD><\/TR><\/TBODY><\/TABLE><BR><BR><br \/>\n<P><A name=N100A3><SPAN class=atitle>\u89e3\u51b3\u601d\u8def <\/SPAN><\/A><\/P><br \/>\n<P>\u5982\u679c\u719f\u6089 Linux \u7684\u542f\u52a8\u8fc7\u7a0b\u548c\u9a71\u52a8\u7a0b\u5e8f\uff0c\u90a3\u4e48\u8981\u89e3\u51b3\u672c\u6587\u7684\u95ee\u9898\uff0c\u57fa\u672c\u4e0a\u6709\u4e24\u6761\u8def\u53ef\u8d70\u3002\u7b2c\u4e00\u5c31\u662f\u5c06\u7f51\u5361\u9a71\u52a8\u7f16\u8bd1\u8fdb\u5185\u6838\uff08\u9759\u6001\u94fe\u63a5\u8fdb\u5185\u6838\uff09\uff0c\u7b2c\u4e8c\u79cd\u65b9\u6cd5\u5c31\u662f\u5c06\u7f51\u5361\u9a71\u52a8\u505a\u6210\u6a21\u5757\uff0c\u7136\u540e\u60f3\u529e\u6cd5\u5728 Linux \u542f\u52a8\u7684\u65f6\u5019\u8ba9 Linux \u5185\u6838\u80fd\u627e\u5230\u5e76\u6302\u8f7d\u8be5\u9a71\u52a8\u3002\u9762\u5bf9\u8fd9\u4e24\u79cd\u65b9\u6848\uff0c\u7b2c\u4e8c\u79cd\u65b9\u6cd5\u6709\u66f4\u597d\u7684\u53ef\u884c\u6027\u548c\u6269\u5c55\u6027\u3002\u56e0\u4e3a\u9996\u5148\u6709\u4e9b\u7f51\u5361\u9a71\u52a8\u672c\u8eab\u5c31\u4e0d\u80fd\u88ab\u9759\u6001\u94fe\u63a5\u8fdb\u5165\u5185\u6838\uff0c\u800c\u53ea\u80fd\u88ab\u7f16\u8bd1\u6210\u4e00\u4e2a\u6a21\u5757\uff0c\u4f8b\u5982\u4e0b\u6587\u8981\u4e3e\u7684\u4f8b\u5b50 &#8211; e1000 \u7f51\u5361\u9a71\u52a8\uff1b\u5176\u6b21\uff0c\u9a71\u52a8\u505a\u6210\u6a21\u5757\u7684\u65b9\u5f0f\uff0c\u53ef\u4ee5\u9002\u5e94\u591a\u4e2a\u5185\u6838\u7248\u672c\uff0c\u7528\u65b9\u6cd5 1\uff0c\u66f4\u6362\u4e00\u4e2a\u5185\u6838\u7248\u672c\u5c31\u8981\u91cd\u65b0\u7f16\u8bd1\u4e00\u6b21\u5185\u6838\uff1b\u6700\u540e\uff0c\u7b49\u4f1a\u4f1a\u770b\u5230\uff0c\u76f8\u6bd4\u7f16\u8bd1\u5185\u6838\uff0c\u65b9\u6cd5 2 \u66f4\u7b80\u5355\u548c\u53ef\u64cd\u4f5c\u3002<\/P><br \/>\n<P>\u65b9\u6cd5 2 \u7684\u5b9e\u73b0\u624b\u6bb5\u5c31\u662f\u5b9a\u5236 initrd.img\uff0c\u5c06\u6211\u4eec\u7684\u7f51\u5361\u9a71\u52a8\u52a0\u8fdb\u53bb\u3002initrd.img \u662f\u4e00\u4e2a\u5c0f\u578b\u7684\u6839\u6587\u4ef6\u7cfb\u7edf\uff0c\u5728 Linux \u5185\u6838\u6ca1\u6709\u6302\u8f7d\u786c\u76d8\u4e0a\u7684\u6839\u5206\u533a\u7684\u65f6\u5019\uff0cinitrd.img \u5c06\u5728\u5185\u5b58\u4e2d\u5c55\u5f00\u3002\u4e00\u822c\u60c5\u51b5\u4e0b\uff0cinitrd.img \u4e2d\u5c06\u5305\u542b\u4e00\u4e9b\u5fc5\u9700\u7684\u547d\u4ee4\u548c\u9a71\u52a8\uff0c\u5982 insmod \u547d\u4ee4\u548c\u78c1\u76d8\u9a71\u52a8\u3002\u6709\u4e86 insmod\uff0c\u624d\u80fd\u5c06\u78c1\u76d8\u9a71\u52a8\u6302\u8f7d\u8fdb\u5185\u6838\uff0c\u6709\u4e86\u78c1\u76d8\u9a71\u52a8\uff0c\u5185\u6838\u624d\u80fd\u6302\u8f7d\u4f4d\u4e8e\u78c1\u76d8\u4e0a\u7684\u6839\u6587\u4ef6\u7cfb\u7edf\u3002<\/P><br \/>\n<P>\u5927\u90e8\u5206\u7684 Linux \u53d1\u884c\u7248\u90fd\u63d0\u4f9b\u4e86\u7528\u4e8e\u7f51\u7edc\u5b89\u88c5 Linux \u7684 initrd.img\uff0c\u4e00\u822c\u4f4d\u4e8e\u7b2c\u4e00\u5f20\u5b89\u88c5\u5149\u76d8\u7684 images\/pxeboot \u76ee\u5f55\u4e0b\u3002\u5728\u4e00\u53f0\u5df2\u7ecf\u88c5\u597d Linux \u7684\u673a\u5668\u4e2d\uff0c\u5728 \/boot \u76ee\u5f55\u4e0b\u6211\u4eec\u4e5f\u80fd\u627e\u5230 initrd.img\uff0c\u6bd4\u8f83\u4e00\u4e0b\u8fd9\u4e24\u4e2a initrd.img\uff0c\u4f1a\u53d1\u73b0 pxeboot \u76ee\u5f55\u4e0b\u7684 initrd.img \u4f1a\u6bd4 \/boot \u4e0b\u7684\u5927\u5f88\u591a\uff0c\u8fd9\u662f\u56e0\u4e3a\u5728\u7f51\u7edc\u5b89\u88c5\u7684\u60c5\u51b5\u4e0b\uff0cLinux \u4e0d\u4f1a\u5c1d\u8bd5\u53bb\u6302\u8f7d\u4f4d\u4e8e\u78c1\u76d8\u4e0a\u7684\u6839\u5206\u533a\uff08\u4e8b\u5b9e\u4e0a\uff0c\u5728\u6ca1\u6709\u5b89\u88c5Linux\u7684\u673a\u5668\u4e0a\uff0c\u6b64\u65f6\u78c1\u76d8\u4e2d\u53ef\u80fd\u4ec0\u4e48\u6570\u636e\u90fd\u6ca1\u6709\uff09\uff0c\u6240\u4ee5\u6b64\u65f6\u7684 initrd.img \u9700\u8981\u5305\u542b\u5927\u91cf\u7684\u9a71\u52a8\uff0c\u4f7f Linux \u80fd\u8bc6\u522b\u5927\u91cf\u7684\u786c\u4ef6\u3002\u4f4d\u4e8e \/boot \u4e0b\u7684 initrd.img\uff0c\u57fa\u672c\u4e0a\u552f\u4e00\u9700\u8981\u7684\u4e1c\u897f\u5c31\u662f\u78c1\u76d8\u9a71\u52a8\uff0c\u53ea\u8981\u5185\u6838\u80fd\u8bbf\u95ee\u78c1\u76d8\uff0c\u90a3\u4e48\u5176\u4f59\u6240\u9700\u7684\u4e1c\u897f\u90fd\u53ef\u4ee5\u4ece\u78c1\u76d8\u53d6\u5f97\u800c\u4e0d\u9700\u8981\u4f9d\u8d56 initrd.img\u3002<\/P><BR><br \/>\n<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0><br \/>\n<TBODY><br \/>\n<TR><br \/>\n<TD><IMG height=1 alt=\"\" src=\"http:\/\/www.ibm.com\/i\/v14\/rules\/blue_rule.gif\" width=\"100%\"><BR><IMG height=6 alt=\"\" src=\"http:\/\/www.ibm.com\/i\/c.gif\" width=8 border=0><\/TD><\/TR><\/TBODY><\/TABLE><br \/>\n<TABLE class=no-print cellSpacing=0 cellPadding=0 align=right><br \/>\n<TBODY><br \/>\n<TR align=right><br \/>\n<TD><IMG height=4 alt=\"\" src=\"http:\/\/www.ibm.com\/i\/c.gif\" width=\"100%\"><BR><br \/>\n<TABLE cellSpacing=0 cellPadding=0 border=0><br \/>\n<TBODY><br \/>\n<TR><br \/>\n<TD vAlign=center><BR><\/TD><br \/>\n<TD vAlign=top align=right><A class=fbox href=\"http:\/\/www.ibm.com\/developerworks\/cn\/linux\/l-linux-netinst\/index.html#main\"><B><FONT color=#996699><\/FONT><\/B><\/A><\/TD><\/TR><\/TBODY><\/TABLE><\/TD><\/TR><\/TBODY><\/TABLE><BR><BR><br \/>\n<P><A name=N100B6><SPAN class=atitle>\u5177\u4f53\u64cd\u4f5c\u548c\u5b9e\u4f8b <\/SPAN><\/A><\/P><br \/>\n<P>\u4ece\u5b89\u88c5\u5149\u76d8\u4e2d\u53d6\u5f97 initrd.img \u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u5f00\u59cb\u5bf9\u5176\u8fdb\u884c\u5b9a\u5236\u3002\u8fd9\u91cc\u8981\u611f\u8c22 Jeremy Mates\uff0c\u4ed6\u5199\u7684 initrd-util.sh \u80fd\u5f88\u597d\u7684\u89e3\u5f00\u548c\u751f\u6210\u4e00\u4e2a initrd.img\u3002\u811a\u672c\u53ef\u4ee5\u5728<A href=\"http:\/\/sial.org\/howto\/linux\/initrd\/initrd-util\"><FONT color=#5c81a7>http:\/\/sial.org\/howto\/linux\/initrd\/initrd-util<\/FONT><\/A>\u4e0b\u8f7d\u5230\u3002<\/P><br \/>\n<P>\u4e0b\u9762\u6211\u4eec\u4ee5RedHat Enterprise Linux Advance Server 4 Update 2 x86_64\uff0cIntel e1000\u7f51\u5361\u9a71\u52a8\u4e3a\u4f8b\uff0c\u8bb2\u8ff0\u5177\u4f53\u7684\u64cd\u4f5c\u8fc7\u7a0b\uff08\u5728\u672c\u4f8b\u4e2d\uff0c\u670d\u52a1\u5668\u548c\u5ba2\u6237\u673a\u62e5\u6709\u76f8\u540c\u7684Intel e1000\u7f51\u5361\uff0c\u800c\u4e14\u6211\u4eec\u5df2\u7ecf\u624b\u52a8\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5b8c\u6210\u4e86\u6b63\u786e\u7684e1000\u9a71\u52a8\uff09\uff1a<\/P><br \/>\n<P>\u9996\u5148\u4ece\u5149\u76d8\u53d6\u5230initrd.img\uff0c\u767b\u5f55\u5230\u670d\u52a1\u5668\uff0c\u7136\u540e\u7528initrd-util.sh\u89e3\u5f00\uff1a<\/P><BR><A name=listing1><B>\u547d\u4ee4\u8f93\u51fa 1. \u89e3\u5f00initrd.img<\/B><\/A><BR><br \/>\n<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0><br \/>\n<TBODY><br \/>\n<TR><br \/>\n<TD class=code-outline><PRE class=displaycode><br \/>\n[root@ericvm ~]# cd `.\/initrd-util.sh unpack initrd.img |tail -1`<br \/>\ninfo: initrd unpack expanded into: \/var\/tmp\/initrd-util.workdir.DA29317<br \/>\n[root@ericvm initrd-util.workdir.DA29317]# pwd<br \/>\n\/var\/tmp\/initrd-util.workdir.DA29317<br \/>\n[root@ericvm initrd-util.workdir.DA29317]# ls<br \/>\n2.6.9-22.EL  bin  dev  etc  linuxrc  lost+found  modules<br \/>\nproc  sbin  selinux  sys  tmp  var<\/PRE><\/TD><\/TR><\/TBODY><\/TABLE><BR><br \/>\n<P>initrd-util.sh\u5f88\u7b80\u5355\uff0c\u5229\u7528gunzip, mount\u548ccpio\u8fd9\u4e9b\u5de5\u5177\u5c06initrd.img\u89e3\u5f00\uff0c\u5176\u4e2d\u9a71\u52a8\u5305\u4f4d\u4e8emodules\u76ee\u5f55\u4e0b\uff0c\u540d\u4e3amodules.cgz\uff0c\u5c06\u8fd9\u4e2a\u6587\u4ef6\u89e3\u5f00\u540e\uff0c\u751f\u6210\u4e862.6.9-22.EL\u76ee\u5f55\uff0c\u8fdb\u5165\u8be5\u76ee\u5f55\uff0c\u5c31\u80fd\u627e\u5230\u5305\u542b\u5728initrd.img\u4e2d\u7684\u9a71\u52a8\u3002\u672c\u4f8b\u4e2d\uff0cRedHat\u5df2\u7ecf\u5305\u542b\u4e86\u4e00\u4e2ae1000\u7684\u9a71\u52a8\uff0c\u4f46\u662f\u8fd9\u4e2a\u9a71\u52a8\u4e0d\u80fd\u9a71\u52a8\u6211\u4eec\u65b0\u7684Intel e1000\u7f51\u5361\u3002\u4e3a\u6b64\uff0c\u6211\u4eec\u5728e1000\u7f51\u7ad9\u4e0b\u8f7d\u65b0\u7248\u7684\u9a71\u52a8\uff0c\u7136\u540e\u5728\u670d\u52a1\u5668\u4e0a\u7f16\u8bd1\u5b8c\u6210\uff0c\u751f\u6210ko\u6a21\u5757\u6587\u4ef6\uff0c\u7136\u540e\u62f7\u8d1d\u52302.6.9-22.EL\u76ee\u5f55\u4e0b\uff0c\u8986\u76d6\u539f\u6587\u4ef6\u5373\u53ef\u3002<\/P><br \/>\n<P>\u9a71\u52a8\u66f4\u65b0\u5b8c\u6bd5\u540e\uff0c\u73b0\u5728\u6211\u4eec\u9700\u8981\u5c062.6.9-22.EL\u8fd9\u4e2a\u76ee\u5f55\u91cd\u65b0\u5236\u4f5c\u6210modules.cgz\uff0c\u8fd9\u4e2a\u529f\u80fdinitrd-util.sh\u4e0d\u80fd\u4e3a\u6211\u4eec\u5b8c\u6210\uff0c\u6240\u4ee5\u6211\u4eec\u624b\u52a8\u64cd\u4f5c\uff1a<\/P><BR><A name=listing2><B>\u547d\u4ee4\u8f93\u51fa 2. \u52a0\u5165\u9a71\u52a8\u5e76\u91cd\u65b0\u6253\u5305<\/B><\/A><BR><br \/>\n<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0><br \/>\n<TBODY><br \/>\n<TR><br \/>\n<TD class=code-outline><PRE class=displaycode><br \/>\n[root@ericvm initrd-util.workdir.DA29317]# find 2.6.9-22.EL | cpio -o -H crc &gt; newmodules<br \/>\n16582 blocks<br \/>\n[root@ericvm initrd-util.workdir.DA29317]# gzip -n -9 newmodules<br \/>\n[root@ericvm initrd-util.workdir.DA29317]# mv newmodules.gz modules<br \/>\n[root@ericvm initrd-util.workdir.DA29317]# cd modules<br \/>\n[root@ericvm modules]# rm -f modules.cgz<br \/>\n[root@ericvm modules]# mv newmodules.gz modules.cgz<br \/>\n[root@ericvm modules]# pwd<br \/>\n\/var\/tmp\/initrd-util.workdir.DA29317\/modules<\/PRE><\/TD><\/TR><\/TBODY><\/TABLE><BR><br \/>\n<P>\u9a71\u52a8\u5305\u91cd\u65b0\u751f\u6210\u4e86\u5e76\u4e0d\u610f\u5473\u7740Linux\u5c31\u53ef\u4ee5\u8bc6\u522b\u7f51\u5361\u4e86\uff0c\u56e0\u4e3aLinux\u5fc5\u987b\u4f9d\u9760\u4e00\u79cd\u903b\u8f91\uff0c\u5c06\u786c\u4ef6\u8bbe\u5907\u548c\u9a71\u52a8\u6a21\u5757\u6587\u4ef6\u5bf9\u5e94\u8d77\u6765\u3002\u8fd9\u4e2a\u903b\u8f91\u5c31\u88ab\u5b9a\u4e49\u5728modules\u76ee\u5f55\u4e0b\u7684\u9664modules.cgz\u4e4b\u5916\u7684\u6587\u4ef6\u4e2d\uff1a<\/P><BR><A name=listing3><B>\u547d\u4ee4\u8f93\u51fa 3. \u8bbe\u5907\u9a71\u52a8\u8bc6\u522b\u4fe1\u606f\u6587\u4ef6<\/B><\/A><BR><br \/>\n<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0><br \/>\n<TBODY><br \/>\n<TR><br \/>\n<TD class=code-outline><PRE class=displaycode><br \/>\n[root@ericvm modules]# ls<br \/>\nmodule-info  modules.cgz  modules.dep  modules.pcimap  modules.usbmap  pci.ids  pcitable<\/PRE><\/TD><\/TR><\/TBODY><\/TABLE><BR><br \/>\n<P>\u5982\u4e0a\u6240\u793a\uff0cpcitable, modules.pcimap\u4e2d\u5b9a\u4e49\u4e86PCI\u8bbe\u5907\u548c\u9a71\u52a8\u6a21\u5757\u4e4b\u95f4\u7684\u5bf9\u5e94\u5173\u7cfb\uff0cmodules.dep\u4e2d\u5b9a\u4e49\u4e86\u6a21\u5757\u548c\u6a21\u5757\u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb\uff08\u6bd4\u5982\uff0c\u5404\u79cdSCSI\u8bbe\u5907\u90fd\u4f1a\u4f9d\u8d56\u4e00\u4e2a\u57fa\u7840\u7684SCSI\u9a71\u52a8\u6a21\u5757\uff09\uff0cmodule-info\u4e2d\u5b9a\u4e49\u4e86\u9a71\u52a8\u7684\u9759\u6001\u63cf\u8ff0\u4fe1\u606f&#8230;&#8230;<\/P><br \/>\n<P>\u8981\u586b\u5199\u8fd9\u4e9b\u6587\u672c\u6587\u4ef6\uff0c\u4e5f\u5f88\u7b80\u5355\uff0c\u9996\u5148\u6211\u4eec\u5fc5\u987b\u8981\u77e5\u9053\u8fd9\u5757e1000\u7f51\u5361\u7684PCI\u8bbe\u5907\u4fe1\u606f\uff0c\u7531\u4e8e\u5728\u670d\u52a1\u5668\u4e0ae1000\u8fd9\u5757\u7f51\u5361\u5df2\u7ecf\u5b89\u88c5\u5b8c\u6210\u4e86\uff0c\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5\u5728\u670d\u52a1\u5668\u4e0a\u53d6\u5230\u6211\u4eec\u60f3\u8981\u7684\u4fe1\u606f\uff1a<\/P><BR><A name=listing4><B>\u547d\u4ee4\u8f93\u51fa 4. \u67e5\u770b\u7f51\u5361\u786c\u4ef6\u4fe1\u606f<\/B><\/A><BR><br \/>\n<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0><br \/>\n<TBODY><br \/>\n<TR><br \/>\n<TD class=code-outline><PRE class=displaycode><br \/>\n[root@ericvm ~]# lspci<br \/>\n&#8230;&#8230;&#8230;&#8230;  ignore some outputs<br \/>\n04:00.0 Ethernet controller: Intel Corporation Enterprise Southbridge DPT LAN Copper<br \/>\n04:00.1 Ethernet controller: Intel Corporation Enterprise Southbridge DPT LAN Copper<br \/>\n&#8230;&#8230;&#8230;&#8230;  ignore some outputs<\/PRE><\/TD><\/TR><\/TBODY><\/TABLE><BR><br \/>\n<P>lspci\u5217\u51fa\u4e86\u670d\u52a1\u5668\u4e0a\u4e24\u5757\u7f51\u5361\u7684\u8bbe\u5907\u4fe1\u606f\uff0c\u6839\u636e\u7f51\u5361\u8bbe\u5907\u7684ID\u53f7\u7801\uff0804:00.0, 04:00.1\uff09\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5728lspci \u2013n\u7684\u8f93\u51fa\u4e2d\u627e\u5230\u8bbe\u5907\u7684vendor code\u548cdevice code\uff08\u8bf7\u53c2\u8003lspci\u7684manual\u4e86\u89e3lspci\uff09\uff1a<\/P><BR><A name=listing5><B>\u547d\u4ee4\u8f93\u51fa 5. \u67e5\u770b\u7f51\u5361code<\/B><\/A><BR><br \/>\n<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0><br \/>\n<TBODY><br \/>\n<TR><br \/>\n<TD class=code-outline><PRE class=displaycode><br \/>\n[root@ericvm ~]# lspci \u2013n<br \/>\n&#8230;&#8230;&#8230;&#8230;  ignore some outputs<br \/>\n04:00.0 Class 0200: 8086:1096 (rev 01)<br \/>\n04:00.1 Class 0200: 8086:1096 (rev 01)<br \/>\n&#8230;&#8230;&#8230;&#8230;  ignore some outputs<\/PRE><\/TD><\/TR><\/TBODY><\/TABLE><BR><br \/>\n<P>\u5728lspci \u2013n\u7684\u8f93\u51fa\u4e2d\uff0c\u6211\u4eec\u627e\u5230\u4e86\u4e24\u5757\u7f51\u5361\u7684vendor code\u548cdevice code \u2013 8086\u548c1096\u3002\u5f97\u5230\u4e86vendor code\u548cdevice code\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u66f4\u65b0initrd.img\u4e2dmodules\u76ee\u5f55\u4e0b\u7684pcitable, modules.pcimap\u7b49\u8fd9\u4e9b\u6587\u4ef6\u4e86\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0c\u5728pcitable\u4e2d\u67e5\u627ee1000\uff0c\u80fd\u53d1\u73b0\u5f88\u591a\u8bbe\u5907\u548ce1000\u8fd9\u4e2a\u9a71\u52a8\u5173\u8054\uff0c\u4f46\u662f\u552f\u72ec\u6ca1\u67098086:1096\u7684\u7ec4\u5408\uff0c\u8fd9\u5c31\u662f\u4e3a\u4ec0\u4e48Linux\u65e0\u6cd5\u9a71\u52a8\u8fd9\u5757e1000\u7f51\u5361\u7684\u539f\u56e0\u4e86\uff0c\u6211\u4eec\u9700\u8981\u624b\u52a8\u5c068086, 1096\u8fd9\u4e24\u4e2acode\u52a0\u5165\u5230pcitable\u4e2d\uff0c\u5e76\u5c06\u8fd9\u4e2a\u8bbe\u5907\u5bf9\u5e94\u5230e1000\u9a71\u52a8\u4e0a\u3002\u7167\u6b64\u65b9\u6cd5\uff0c\u66f4\u65b0\u5176\u4f59\u7684\u6587\u4ef6\uff0c\u5982module-info, modules.pcimap\u7b49\u3002<\/P><br \/>\n<P>\u8fd9\u6837\u6211\u4eec\u5c31\u5b8c\u6210\u4e86\u5bf9initrd.img\u7684\u5b8c\u5168\u4fee\u6539\uff0c\u7528initrd-util.sh\u91cd\u65b0\u5c06\u76ee\u5f55\u6253\u5305\uff0c\u751f\u6210\u4e00\u4e2a\u65b0\u7684initrd.img\uff1a<\/P><BR><A name=listing6><B>\u547d\u4ee4\u8f93\u51fa 6. \u91cd\u65b0\u751f\u6210initrd.img<\/B><\/A><BR><br \/>\n<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0><br \/>\n<TBODY><br \/>\n<TR><br \/>\n<TD class=code-outline><PRE class=displaycode><br \/>\n[root@ericvm ~]# .\/initrd-util.sh pack \/var\/tmp\/initrd-util.workdir.DA29317\/<br \/>\nnotice: new initrd size: 6144K<br \/>\n6144+0 records in<br \/>\n6144+0 records out<br \/>\nmke2fs 1.35 (28-Feb-2004)<br \/>\ninfo: initrd packed into: \/var\/tmp\/initrd-util.initrd-new.IV29439.gz<br \/>\n\/var\/tmp\/initrd-util.initrd-new.IV29439.gz<br \/>\n[root@ericvm ~]# ls -lh \/var\/tmp<br \/>\ntotal 3.7M<br \/>\n-rw-r&#8211;r&#8211;   1 root root 3.7M Jun 20 17:10 initrd-util.initrd-new.IV29439.gz<br \/>\ndrwxr-xr-x  12 root root 4.0K Jun 20 17:10 initrd-util.workdir.DA29317<br \/>\ndrwxr-xr-x  13 root root 4.0K Jun 20 15:53 initrd-util.workdir.ID29288<\/PRE><\/TD><\/TR><\/TBODY><\/TABLE><BR><br \/>\n<P>initrd-util.sh\u9996\u5148\u521b\u5efa\u4e00\u4e2a\u201c\u7a7a\u6d1e\u6587\u4ef6\u201d\uff0c\u7136\u540e\u5728\u8fd9\u4e2a\u6587\u4ef6\u4e2d\u5efa\u7acbext2 \u6587\u4ef6\u7cfb\u7edf\uff0c\u7136\u540e\u5c06\u8fd9\u4e2a\u6587\u4ef6mount\u5230\u4e00\u4e2a\u76ee\u5f55\u4e2d\uff0c\u6700\u540e\u7528rsync\u8fd9\u79cd\u65b9\u5f0f\u5c06\u6211\u4eec\u66f4\u65b0\u8fc7\u7684\u6587\u4ef6\u201c\u62f7\u8d1d\u201d\u5230\u4e86mount\u7684\u76ee\u5f55\u4e0b\uff0c\u8fd9\u6837\u201c\u7a7a\u6d1e\u201d\u6587\u4ef6\u4e2d\u5c31\u6709\u4e86\u5185\u5bb9\uff0c\u6700\u540e\u5bf9\u6587\u4ef6\u8fdb\u884c\u538b\u7f29\uff0c\u751f\u6210\u6700\u7ec8\u7684img\u6587\u4ef6\u3002<\/P><br \/>\n<P>\u5c06\/var\/tmp\/initrd-util.initrd-new.IV29439.gz\u6539\u540d\u6210initrd.img\uff0c\u653e\u5230tftp\u914d\u7f6e\u7684\u76ee\u5f55\u4e0b\uff0c\u5c31\u53ef\u4ee5\u8ba9\u5ba2\u6237\u673a\u5728\u7f51\u7edc\u542f\u52a8\u7684\u65f6\u5019\u53d6\u5230\u65b0\u7684initrd.img\u4e86\uff0c\u4ece\u800c\u8bc6\u522b\u7f51\u5361\u5f00\u59cb\u7f51\u7edc\u5b89\u88c5\u3002<\/P><BR><br \/>\n<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0><br \/>\n<TBODY><br \/>\n<TR><br \/>\n<TD><IMG height=1 alt=\"\" src=\"http:\/\/www.ibm.com\/i\/v14\/rules\/blue_rule.gif\" width=\"100%\"><BR><IMG height=6 alt=\"\" src=\"http:\/\/www.ibm.com\/i\/c.gif\" width=8 border=0><\/TD><\/TR><\/TBODY><\/TABLE><br \/>\n<TABLE class=no-print cellSpacing=0 cellPadding=0 align=right><br \/>\n<TBODY><br \/>\n<TR align=right><br \/>\n<TD><IMG height=4 alt=\"\" src=\"http:\/\/www.ibm.com\/i\/c.gif\" width=\"100%\"><BR><br \/>\n<TABLE cellSpacing=0 cellPadding=0 border=0><br \/>\n<TBODY><br \/>\n<TR><br \/>\n<TD vAlign=center><BR><\/TD><br \/>\n<TD vAlign=top align=right><A class=fbox href=\"http:\/\/www.ibm.com\/developerworks\/cn\/linux\/l-linux-netinst\/index.html#main\"><B><FONT color=#996699><\/FONT><\/B><\/A><\/TD><\/TR><\/TBODY><\/TABLE><\/TD><\/TR><\/TBODY><\/TABLE><BR><BR><br \/>\n<P><A name=N10127><SPAN class=atitle>\u5230\u6b64\u4e3a\u6b62\u4e86\u4e48\uff1f <\/SPAN><\/A><\/P><br \/>\n<P>\u5230\u76ee\u524d\u4e3a\u6b62\uff0c\u4e00\u5207\u770b\u8d77\u6765\u90fd\u5f88\u597d\u3002\u5ba2\u6237\u673a\u901a\u8fc7\u7f51\u7edc\u542f\u52a8\uff0c\u80fd\u628a\u7f51\u5361\u9a71\u52a8\u8d77\u6765\u5e76\u4ece\u670d\u52a1\u5668\u4e0a\u5f97\u5230\u6240\u6709\u9700\u8981\u7684\u4e1c\u897f\uff0c\u5e76\u5f00\u59cb\u5b89\u88c5\u3002\u4f46\u662f\uff0c\u5982\u679c\u6ca1\u6709\u505a\u7279\u6b8a\u5904\u7406\u7684\u8bdd\uff0c\u5ba2\u6237\u673a\u4e0aLinux\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u542f\u52a8\u8fdb\u5165Linux\uff0c\u4f1a\u53d1\u73b0\u7f51\u5361\u4f9d\u65e7\u9a71\u52a8\u4e0d\u4e86\uff0c\u5178\u578b\u7684\u51fa\u9519\u4fe1\u606f\u5c31\u662f\u201c\u65e0\u6cd5\u6210\u529f\u6302\u8f7dXXX\u9a71\u52a8\u201d\uff0c\u201cethX\u7684MAC\u5730\u5740\u548c\u9884\u8ba1\u7684\u4e0d\u4e00\u6837\u201d\u7b49\u3002\u51fa\u73b0\u8fd9\u6837\u95ee\u9898\u7684\u539f\u56e0\u5f88\u7b80\u5355\uff0c\u8fd9\u662f\u56e0\u4e3a\u6b63\u786e\u7684\u7f51\u5361\u9a71\u52a8\u53ea\u5b58\u5728\u4e8e\u670d\u52a1\u5668\u4e0a\u7684 initrd.img \u4e2d\uff0c\u800c\u6ca1\u6709\u4f53\u73b0\u5230\u5ba2\u6237\u673a\u7684\u786c\u76d8\u4e0a\u3002\u5ba2\u6237\u673a\u5728\u7f51\u7edc\u542f\u52a8\u7684\u65f6\u5019\u5f97\u5230\u4e86\u670d\u52a1\u5668\u4e0a\u7684 initrd.img\uff0c\u4f46 Linux \u8fd8\u6ca1\u6709\u667a\u80fd\u5230\u80fd\u81ea\u52a8\u89e3\u5f00\u8fd9\u4e2a initrd.img \u5e76\u5c06\u91cc\u9762\u7684\u9a71\u52a8\u62f7\u8d1d\u5230\u5ba2\u6237\u673a\u7684\u786c\u76d8\u4e0a\u3002\u4e00\u65e6\u5ba2\u6237\u673a\u5b8c\u6210\u5b89\u88c5\u91cd\u542f\uff0c\u4ece\u786c\u76d8\u542f\u52a8\u4e4b\u540e\uff0c\u6240\u6709\u7684\u9a71\u52a8\u6587\u4ef6\u548c\u4fe1\u606f\u5c31\u90fd\u4ece\u786c\u76d8\u8bfb\u53d6\u4e86\u3002<\/P><br \/>\n<P>\u8fd8\u4e3e\u521a\u624d\u7684\u4f8b\u5b50\uff0ce1000 \u7f51\u5361\u9a71\u52a8\u5728 RedHat \u4e2d\u5176\u5b9e\u81ea\u5e26\u5c31\u6709\u4e00\u4e2a\uff0c\u4f46\u4e0d\u9002\u7528\u4e8e\u6211\u4eec\u7684 Intel e1000 \u7f51\u5361\uff0c\u7528 rpm \u547d\u4ee4\u53ef\u4ee5\u67e5\u5230\u5b89\u88c5\u5728\u786c\u76d8\u4e0a\u7684\u8fd9\u4e2a e1000 \u9a71\u52a8\u5c5e\u4e8e\u54ea\u4e2aRPM\u5305\uff1a<\/P><BR><A name=listing7><B>\u547d\u4ee4\u8f93\u51fa 7. \u67e5\u770b\u9a71\u52a8\u6240\u5728\u7684 RPM \u5305<\/B><\/A><BR><br \/>\n<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0><br \/>\n<TBODY><br \/>\n<TR><br \/>\n<TD class=code-outline><PRE class=displaycode><br \/>\n# rpm -qf \/lib\/modules\/2.6.9-42.ELsmp\/kernel\/drivers\/net\/e1000\/e1000.ko<br \/>\nkernel-smp-2.6.9-42.EL<\/PRE><\/TD><\/TR><\/TBODY><\/TABLE><BR><br \/>\n<P>\u6240\u4ee5\uff0c\u5f88\u660e\u663e\u7684\u5c31\u662f\uff0c\u8981\u89e3\u51b3\u8fd9\u6837\u7684\u95ee\u9898\uff0c\u6211\u4eec\u9700\u8981\u91cd\u65b0\u751f\u6210\u8fd9\u4e2a kernel RPM \u5305\u3002\u4f46\u662f\u8981\u5728 RPM \u5305\u4e2d\u66ff\u6362\u4e00\u4e2a\u6587\u4ef6\uff0c\u6216\u662f\u52a0\u5165\u4e00\u4e2a\u6587\u4ef6\uff0c\u53ef\u4e0d\u50cf\u5728 RAR \u6587\u4ef6\u4e2d\u7528\u9f20\u6807\u76f4\u63a5\u62d6\u62fd\u90a3\u4e48\u7b80\u5355\u3002\u6709\u5174\u8da3\u7684\u53ef\u4ee5\u53c2\u8003 RPM \u7684\u76f8\u5173\u8d44\u6599\u3002<\/P><br \/>\n<P>\u9664\u4e86\u91cd\u65b0\u751f\u6210 RPM \u4e4b\u5916\uff0c\u8fd8\u6709\u4e00\u4e9b\u7b80\u5355\u7684\u529e\u6cd5\u4e5f\u662f\u53ef\u884c\u7684\uff0c\u4f46\u4e0d\u5982\u91cd\u65b0\u751f\u6210 RPM \u6765\u7684\u4e2d\u89c4\u4e2d\u77e9\u3002\u6709\u5174\u8da3\u7684\u8bfb\u8005\u53ef\u4ee5\u548c\u6211\u4ea4\u6d41\uff0c\u8fd9\u91cc\u5c31\u4e0d\u8d58\u8ff0\u4e86\u3002<\/P><BR><BR><br \/>\n<P><A name=resources><SPAN class=atitle>\u53c2\u8003\u8d44\u6599 <\/SPAN><\/A><\/P><br \/>\n<UL><br \/>\n<LI>Jeremy Mates\u7684initrd-utils, <A href=\"http:\/\/sial.org\/howto\/linux\/initrd\/initrd-util\"><FONT color=#5c81a7>http:\/\/sial.org\/howto\/linux\/initrd\/initrd-util<\/FONT><\/A> \uff0c\u5e2e\u52a9\u6211\u4eec\u521b\u5efa\/\u89e3\u5f00 initrd.img<BR><BR><br \/>\n<LI>Adding driver modules to a Fedora Core 2 CD for kickstart install: <A href=\"http:\/\/www.cs.umass.edu\/~olc\/pub\/fc2bootiso.txt\"><FONT color=#5c81a7>http:\/\/www.cs.umass.edu\/~olc\/pub\/fc2bootiso.txt<\/FONT><\/A> <BR><BR><br \/>\n<LI>Linux lspci manual page: <A href=\"http:\/\/linux.die.net\/man\/8\/lspci\"><FONT color=#5c81a7>http:\/\/linux.die.net\/man\/8\/lspci<\/FONT><\/A> <\/LI><\/UL><br \/>\n<DIV>&nbsp;<\/DIV><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u5728initrd.img\u4e2d\u6dfb\u52a0\u9a71\u52a8 2007 \u5e74 9 \u6708 20 \u65e5 \u672c\u6587\u901a\u8fc7\u5c06\u7f51\u5361\u9a71\u52a8\u52a0\u5165\u5230 initrd.img \u4e2d\uff0c\u4f7f Linux \u5185\u6838\u5728\u542f\u52a8\u7684\u8fc7\u7a0b\u4e2d\u80fd\u6b63\u786e\u8bc6\u522b\u5e76\u52a0\u8f7d\u7f51\u5361\u9a71\u52a8\uff0c\u4ece\u800c\u4f7f\u7f51\u7edc\u5b89\u88c5\u5f97\u4ee5\u8fdb\u884c\u3002 \u524d\u8a00 \u7f51\u7edc\u5b89\u88c5 Linux \u5e76\u4e0d\u662f\u4e00\u4e2a\u65b0\u9c9c\u7684\u8bdd\u9898\uff0c\u5176\u8fc7\u7a0b\u4e5f\u4e0d\u662f\u4e00\u4e2a\u8f7b\u677e\u7684\u4f53\u9a8c\u3002\u4e3a\u4e86\u8ba9\u673a\u5668\u80fd\u901a\u8fc7\u7f51\u7edc\u6765\u5b89\u88c5 Linux\uff0c\u5982\u679c\u8fd8\u9700\u8981\u914d\u5408 kickstart \u6765\u81ea\u52a8\u5316 Linux \u7684\u5b89\u88c5\u8fc7\u7a0b\u7684\u8bdd\uff0c\u7528\u6237\u9700\u8981\u505a\u5927\u91cf\u7684\u914d\u7f6e\u5de5\u4f5c\u3002\u4f17\u6240\u5468\u77e5\uff0c\u7528\u6237\u9700\u8981\u6311\u9009\u4e00\u53f0\u673a\u5668\u4f5c\u4e3a\u670d\u52a1\u5668\uff0c\u7136\u540e\u5728\u8fd9\u53f0\u673a\u5668\u4e0a\u914d\u7f6e DHCP, TFTP, NFS\/Http\/Ftp, pxelinux, kickstart \u7b49\u4e00\u7cfb\u5217\u7684\u4e1c\u897f\u3002 \u4f46\u662f\u6240\u6709\u7684\u8fd9\u4e00\u5207\u80fd\u6210\u529f\u8fd0\u4f5c\u90fd\u81f3\u5c11\u6709\u4e00\u4e2a\u524d\u63d0\u6761\u4ef6\uff1a\u6211\u4eec\u6240\u5b89\u88c5\u7684 Linux \u80fd\u6b63\u786e\u7684\u8bc6\u522b\u5e76\u9a71\u52a8\u6240\u6709\u5ba2\u6237\u673a\u7684\u7f51\u5361\u3002\u5982\u679c\u7f51\u5361\u9a71\u52a8\u4e0d\u4e86\uff0c\u5ba2\u6237\u673a\u6839\u672c\u65e0\u6cd5\u901a\u8fc7\u7f51\u7edc\u4ece\u670d\u52a1\u5668\u53d6\u5230\u6240\u9700\u8981\u7684\u4e1c\u897f\uff0c\u7f51\u7edc\u5b89\u88c5 Linux \u5c31\u65e0\u4ece\u8c08\u8d77\u4e86\u3002 \u672c\u6587\u901a\u8fc7\u5c06\u7f51\u5361\u9a71\u52a8\u52a0\u5165\u5230 initrd.img \u4e2d\uff0c\u4f7f Linux \u5185\u6838\u5728\u542f\u52a8\u7684\u8fc7\u7a0b\u4e2d\u80fd\u6b63\u786e\u8bc6\u522b\u5e76\u52a0\u8f7d\u7f51\u5361\u9a71\u52a8\uff0c\u4ece\u800c\u4f7f\u7f51\u7edc\u5b89\u88c5\u5f97\u4ee5\u8fdb\u884c\u3002\u672c\u6587\u5e76\u4e0d\u8bb2\u8ff0\u7f51\u7edc\u5b89\u88c5 Linux \u7684\u80cc\u666f\u77e5\u8bc6\uff08\u5982\u4e3a\u4ec0\u4e48\u9700\u8981\u7f51\u7edc\u5b89\u88c5\uff0c\u7f51\u7edc\u5b89\u88c5\u7684\u597d\u5904\u7b49\uff09\u3001\u5177\u4f53\u914d\u7f6e\u548c\u64cd\u4f5c\u6b65\u9aa4\uff08\u4e5f\u5c31\u662f\u914d\u7f6e DHCP\uff0cTFTP\uff0cpxelinux \u7b49\u5185\u5bb9\uff09\u3002\u6b64\u5916\uff0c\u672c\u6587\u9700\u8981\u8bfb\u8005\u6709\u719f\u7ec3\u7684 Linux \u64cd\u4f5c\u7ecf\u9a8c\u548c Shell \u7f16\u7a0b\u7684\u57fa\u672c\u77e5\u8bc6\uff0c\u800c\u4e14\u5bf9 Linux \u542f\u52a8\u8fc7\u7a0b\u548c\u9a71\u52a8\u7a0b\u5e8f\u6709\u57fa\u672c\u7684\u4e86\u89e3\u3002 \u6ce8\uff1a\u6240\u6709\u88ab\u5b89\u88c5\u7684\u673a\u5668\u6211\u4eec\u79f0\u4e4b\u4e3a\u5ba2\u6237\u673a\uff0c\u63d0\u4f9b\u7f51\u7edc\u5b89\u88c5\u670d\u52a1\u7684\u673a\u5668\u6211\u4eec\u79f0\u4e4b\u4e3a\u670d\u52a1\u5668 \u5f00\u59cb\u4e4b\u524d\u7684\u5efa\u8bae \u5efa\u8bae\uff1a\u5982\u679c\u60a8\u78b0\u5230\u4e86\u524d\u8a00\u4e2d\u6240\u63cf\u8ff0\u7684\u95ee\u9898\u7684\u8bdd\uff0c\u6700\u597d\u7684\u89e3\u51b3\u65b9\u6cd5\u662f \u2013 \u627e\u4e00\u4e2a\u80fd\u9a71\u52a8\u5ba2\u6237\u673a\u7f51\u5361\u7684 Linux Distribution\uff0c\u8fd9\u6837\u80fd\u7701\u5374\u5f88\u591a\u9ebb\u70e6\u3002 \u4f46\u5728\u73b0\u5b9e\u73af\u5883\u4e0b\uff0c\u5f88\u591a\u539f\u56e0\u4f1a\u5bfc\u81f4\u6211\u4eec\u65e0\u6cd5\u9009\u62e9\u5b89\u88c5\u4e00\u4e2a\u65b0\u7684 &hellip; <a href=\"https:\/\/www.strongd.net\/?p=258\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Hacking initrd.img &#8211; \u6dfb\u52a0\u7f51\u5361\u9a71\u52a8\uff0c\u7f51\u7edc\u5b89\u88c5 Linux<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-258","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=258"}],"version-history":[{"count":0,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/258\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}