LSX-blog

Feed Rss

【原创】打包内核为RPM包

05.31.2015, Linux, by .

下载内核包

1
https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.16.7.tar.gz

安装依赖包

1
yum install gcc rpm-build redhat-rpm-config ncurses-devel patchutils bc xmlto asciidoc elfutils-libelf-devel zlib-devel binutils-devel newt-devel python-devel perl-ExtUtils-Embed hmaccalc kernel-firmware -y

解压内核压缩包

1
tar zxvf linux-3.16.7.tar.gz

复制本机内核配置到新内核目录

1
2
cd linux-3.16.7
cp /boot/config-2.6.32-504.8.1.el6.x86_64 .config

增加内核安装后默认启动

1
2
cd linux-3.16.7
vim scripts/package/mkspec

在%post最后面增加如下行

1
echo "/sbin/grubby --set-default 0"

在%post段后面添加%preun段

1
2
3
echo "%preun"
echo "new-kernel-pkg --rminitrd --rmmoddep --remove $KERNELRELEASE"
echo ""

简单设置config

1
make menuconfig

General setup —> Local version – append to kernel release
输入
.el6.x86_64
保存
创建RPM包
make rpm-pkg

等待完成
~/rpmbuild/RPMS/x86_64 即可看到。

【原创】打包内核为RPM包 有 99,776 条回应

  1. Amazing a good deal of helpful tips. [url=https://viagradocker.com/]sophia viagra nude[/url]
    [url=http://christmas.regenbogenwiese.net/index.php?guestbook-entry/4055028-s836hq4-n88fnp/]s836hq4 n88fnp[/url] 127c03f

    回复
  2. Good info. Lucky me I came across your website by accident (stumbleupon).
    I have bookmarked it for later!

    回复
  3. [url=https://hydroxychloroquinecv.com/]buy hydroxychloroquine sulfate online[/url] [url=https://hydroxychlorothiazide.com/]hctz hydrochlorothiazide[/url] [url=https://cialisprice.us.org/]buy cialis[/url] [url=https://malegra.us.org/]buy malegra fxt[/url] [url=https://metformin.us.org/]metformin cheapest price[/url]

    回复
  4. I feel this is one of the such a lot vital information for me.

    And i’m satisfied studying your article. But want to statement on some basic things,
    The site taste is wonderful, the articles is actually excellent
    : D. Just right job, cheers

    回复
  5. [url=http://prazosin.us.com/]prazosin hcl 1mg[/url] [url=http://motrin.us.com/]motrin[/url] [url=http://bupropion365.com/]bupropion tablets 150mg[/url] [url=http://retina.us.org/]where can you buy retin a over the counter[/url] [url=http://ivermectin.us.org/]price of ivermectin tablets[/url]

    回复
  6. [url=https://hydroxychloroquine.us.com/]buy hydroxychloroquine sulfate[/url] [url=https://motrin.us.com/]motrin 50[/url] [url=https://hydroxychloroquinecv.com/]hydroxychloroquine online[/url] [url=https://lipitor.us.org/]buy lipitor uk[/url] [url=https://amitriptyline24.com/]amitriptyline 100 mg[/url]

    回复
  7. Fantastic info. Regards. [url=https://canadianpharmaciescubarx.com/]online pharmacy[/url]
    [url=http://christmas.regenbogenwiese.net/index.php?guestbook-entry/4059004-j35mbie-o250zf/]j35mbie o250zf[/url] ab390e5

    回复
  8. Amazing plenty of helpful advice! [url=https://writingthesistop.com/]the thesis statement[/url]
    [url=http://www.jurgenkorn.com/portafolio/bodas/2-ine-y-gianco/]i49ywv3 n16tkg[/url] 3fc1a0a

    回复
  9. [url=http://lipitor.us.org/]lipitor 80 mg[/url] [url=http://proscar.us.com/]buy proscar[/url] [url=http://cialisprice.us.org/]prescription cialis uk[/url] [url=http://attarax.com/]atarax medication[/url] [url=http://hydroxychloroquine.us.com/]buy hydroxychloroquine[/url]

    回复
  10. [url=http://hydroxychloroquinecv.com/]hydroxychloroquine online[/url] [url=http://wellbutrin.us.org/]buy wellbutrin[/url]

    回复
  11. [url=https://singulair.us.com/]generic form of singulair[/url] [url=https://retina.us.org/]buy retin a[/url] [url=https://chloroquine.us.org/]generic chloroquine[/url] [url=https://metformin.us.org/]metformin 3115 tablets[/url] [url=https://proscar.us.com/]order proscar[/url]

    回复
  12. Thank you, Loads of tips!
    [url=https://dissertationwritingtop.com/]dissertation of[/url]
    [url=http://addrilling.com/product/trowers/#comment-65085]k68ofxq e55vcr[/url] 6415f19

    回复
  13. Tips nicely considered.! [url=https://paydayloansbbv.com/]personal loans for bad credit[/url]
    [url=http://lakecountyoffroad.org/LCOR_FORUM/viewtopic.php?f=32&t=532833]k57nbth w574ta[/url] 15f19e1

    回复
  14. With thanks! Loads of postings!
    [url=https://canadianonlinepharmacytrust.com/]canadian cialis[/url]
    [url=http://www.sickautos.com/?q=node/30&page=123#comment-9920]x13qlg4 l171mp[/url] fc1a0ab

    回复
  15. You reported that adequately! [url=https://buymodafinilntx.com/]interactions for modafinil[/url]
    [url=https://www.beautility.it/prodotti/bio/spray-termoprotettore-alessandra-scudo-divino-sezione-aurea-cosmetics/#comment-31985]b13tzms v92muw[/url] 6415f19

    回复
  16. Nicely put, Appreciate it! [url=https://canadianpharmaciescubarx.com/]canada pharmaceutical online ordering[/url]
    [url=http://www.nokta.xyz/yetki-basvurulari/drugs-without-prescription-r39ux-5-148592.html#post1071632]j372jkl a946bq[/url] ba6415f

    回复
  17. [url=https://ivermectin.us.org/]ivermectin 2%[/url] [url=https://singulair.us.com/]singulair 10 mg tablet[/url] [url=https://prazosin.us.com/]buy prazosin[/url] [url=https://chloroquine.us.org/]chloroquine[/url] [url=https://priligy.us.com/]priligy online purchase[/url] [url=https://lipitor.us.org/]lipitor 20mg price in uk[/url] [url=https://retina.us.org/]buy retin a[/url] [url=https://chloroquinaralen.com/]chloroquine mexico[/url] [url=https://attarax.com/]atarax for insomnia[/url] [url=https://hydroxychlorothiazide.com/]hydrochlorothiazide 50 mg[/url]

    回复
  18. Reliable posts. Cheers. [url=https://paydayloansttf.com/]private loan[/url]
    [url=http://lakecountyoffroad.org/LCOR_FORUM/viewtopic.php?f=32&t=534720]u37tlam t149pe[/url] 127c03f

    回复
  19. Excellent post. I am experiencing many of these issues as well..

    回复
  20. [url=https://prednisolone.us.org/]buy prednisolone[/url] [url=https://malegra.us.org/]malegra 100 cheap[/url]

    回复
  21. [url=https://hydroxychloroquine.us.com/]buy hydroxychloroquine[/url] [url=https://ivermectin.us.org/]ivermectin where to buy for humans[/url] [url=https://zovirax.us.com/]zovirax buy[/url] [url=https://domperidone.us.com/]motilium no prescription[/url] [url=https://motrin.us.com/]where to buy motrin[/url] [url=https://priligy.us.com/]buy priligy[/url] [url=https://prazosin.us.com/]buy prazosin[/url] [url=https://azithromycin.us.org/]canada azithromycin over the counter[/url] [url=https://lipitor.us.org/]lipitor generic on line no prescription[/url] [url=https://malegra.us.org/]malegra fxt[/url] [url=https://hydroxychloroquinecv.com/]buy hydroxychloroquine[/url] [url=https://wellbutrin.us.org/]price of wellbutrin 75 mg[/url] [url=https://chloroquine.us.org/]chloroquine where to buy[/url] [url=https://flomax.us.com/]flomax generic[/url] [url=https://retina.us.org/]buy retin-a gel[/url] [url=https://attarax.com/]buy atarax tablets[/url] [url=https://cialisprice.us.org/]pharmacy rx canada cialis[/url] [url=https://bupropion365.com/]buy bupropion[/url] [url=https://tamoxifenpct.com/]cost of tamoxifen in singapore[/url] [url=https://proscar.us.com/]proscar prescription[/url]

    回复
  22. [url=https://proscar.us.com/]proscar tablets[/url] [url=https://hydroxychlorothiazide.com/]hydrochlorothiazide tablet brand name[/url] [url=https://chloroquine.us.org/]chloroquine tablet price[/url] [url=https://malegra.us.org/]malegra 100 mg for sale[/url]

    回复
  23. Thanks. Quite a lot of stuff.
    [url=https://writingthesistop.com/]help writing thesis statement[/url]
    [url=https://www.thenauticalstore.co.nz/product/shamrock-model-ship/]e66jktw p58smq[/url] 127c03f

    回复
  24. Kudos, Quite a lot of advice!
    [url=https://ciaonlinebuyntx.com/]cialis tablets[/url]
    [url=http://affiliateforums.org/viewtopic.php?f=5&t=1172087]s73xcnw t62ytz[/url] e2_28a3

    回复
  25. [url=http://zovirax.us.com/]zovirax 800 mg[/url] [url=http://tamoxifenpct.com/]tamoxifen for sale[/url] [url=http://chloroquinaralen.com/]generic chloroquine[/url] [url=http://priligy.us.com/]where can i buy priligy[/url] [url=http://singulair.us.com/]buy singulair[/url] [url=http://nexium.us.org/]nexium 10 mg capsule[/url] [url=http://hydroxychlorothiazide.com/]hydrochlorothiazide brand australia[/url] [url=http://hydroxychloroquine.us.com/]hydroxychloroquine over the counter[/url] [url=http://lipitor.us.org/]generic for lipitor[/url] [url=http://hydroxychloroquinecv.com/]hydroxychloroquine for sale[/url]

    回复
  26. With thanks! I value this. [url=https://writingthesistop.com/]thesis help[/url]
    [url=http://hbcontract.com/shop/work-station/infinity-workstation-6/#comment-496692]k58mxf5 a80kmj[/url] a0ab390

    回复
  27. wonderful submit, very informative. I wonder why the opposite experts of this sector don’t notice
    this. You should proceed your writing. I am sure, you
    have a great readers’ base already!

    回复
  28. You stated it well! [url=https://ciaonlinebuyntx.com/]Cialis Kaiser Advantage[/url]
    [url=http://microeconomia.org/2008/12/28/cournol-software-para-aplicaciones-del-modelo-de-competencia-y-monopolio/comment-page-470/#comment-1732070]w18ogd8 s99yjh[/url] c03fc1a

    回复
  29. Appreciate it. Numerous write ups!
    [url=https://essaywriting4you.com/]writing my essay[/url]
    [url=http://www.rippedmass.org/forums/anabolic-discussion-forum/2100-professional-muscle-79.html#post307823]u37sskl y49uos[/url] 5c2ba64

    回复
  30. Many thanks! I enjoy this! [url=https://paydayloansbbv.com/]payday advance las vegas[/url]
    [url=http://www.sickautos.com/?q=node/30&page=89#comment-8009]j26ghqb a28ohr[/url] a0ab390

    回复
  31. Just want to say your article is as astounding. The clarity
    on your publish is just spectacular and i can think you are a professional in this subject.

    Fine together with your permission allow me to grasp your feed to stay up to date with drawing close post.
    Thanks a million and please carry on the rewarding work.

    回复
  32. Regards. Numerous content.
    [url=https://dissertationwritingtop.com/]doctoral dissertations[/url]
    [url=https://m.hyhouse.com/forum/forum.php?mod=viewthread&tid=1393943&extra=]g50vtfu v852or[/url] 03fc1a0

    回复
  33. Nuo 1995 metų gaminame įvairaus sudėtingumo
    medinius laiptus, darome nestandartinius sprendimus,
    projektuojame pagal namo dizainą atitinkantį
    variantą, bei atsižvelgiant į užsakovo pageidavimus.
    Laiptai / Mediniai laiptai / Laiptų projektavimas / Ekskliuzyviniai laiptai / Baldų gamyba

    回复
  34. This paragraph provides clear idea in favor of the new visitors
    of blogging, that actually how to do blogging and site-building.

    回复
  35. What a material of un-ambiguity and preserveness of precious experience concerning
    unexpected feelings.

    回复
  36. [url=https://proscar.us.com/]order proscar online uk[/url]

    回复
  37. Hi this is kinda of off topic but I was wanting to
    know if blogs use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding experience so I wanted to get guidance from someone
    with experience. Any help would be greatly appreciated!

    回复
  38. Nicely put. Kudos. [url=https://ciaonlinebuyntx.com/]Most Effective Dose Of Cialis[/url]
    [url=http://www.baperwiljember.jatimprov.go.id/pengumuman-hari-berkabung-nasional.html]c51gpxb p45lyn[/url] 5c2ba64

    回复
  39. [url=https://domperidone.us.com/]domperidone[/url] [url=https://motrin.us.com/]prescription motrin[/url] [url=https://hydroxychlorothiazide.com/]lisinopril hydrochlorothiazide[/url]

    回复
  40. fantastic submit, very informative. I ponder why the opposite experts of this sector
    don’t realize this. You should proceed your writing.
    I’m sure, you have a huge readers’ base already!

    回复
  41. This is nicely said! . [url=https://viaonlinebuyntx.com/]viagra without a doctor prescription[/url]
    [url=http://christmas.regenbogenwiese.net/index.php?guestbook-entry/4052847-k904oah-b15ffs/]k904oah b15ffs[/url] 7c03fc1

    回复
  42. [url=http://prednisolone.us.org/]prednisolone online[/url] [url=http://hydroxychlorothiazide.com/]hydrochlorothiazide 25mg[/url] [url=http://metformin.us.org/]metformin 800 mg[/url] [url=http://zovirax.us.com/]zovirax 800 mg[/url] [url=http://trazodonesale.com/]trazodone 300 mg capsule[/url] [url=http://wellbutrin.us.org/]buy brand wellbutrin[/url] [url=http://cialisprice.us.org/]cialis price[/url] [url=http://priligy.us.com/]buy priligy tablets[/url]

    回复
  43. [url=https://cephalexin365.com/]cephalexin tablets 250 mg[/url] [url=https://hydroxychlorothiazide.com/]hydrochlorothiazide 12.5 mg tablets[/url]

    回复
  44. [url=https://hydroxychloroquinecv.com/]hydroxychloroquine buy[/url] [url=https://hydroxychloroquine.us.com/]hydroxychloroquine-o-sulfate[/url] [url=https://zovirax.us.com/]buy zovirax[/url] [url=https://bupropion365.com/]bupropion hcl 150mg[/url] [url=https://cialisprice.us.org/]cialis capsules price[/url]

    回复
  45. [url=https://hydroxychloroquine.us.com/]buy hydroxychloroquine[/url]

    回复
  46. Today, I went to the beach with my children. I found a sea shell and gave it
    to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the shell to her ear and screamed.

    There was a hermit crab inside and it pinched her ear.
    She never wants to go back! LoL I know this is entirely off
    topic but I had to tell someone!

    回复
  47. Amazing write ups. With thanks. [url=https://viagradocker.com/]generic viagra 100mg[/url]
    [url=http://rcro56.ru/forum/viewtopic.php?pid=215044#p215044]o82fmo6 j38ncx[/url] 1_19416

    回复
  48. Nicely expressed without a doubt! ! [url=https://viagrapython.com/]viagra 100mg[/url]
    [url=http://www.sickautos.com/?q=node/30&page=109#comment-9146]f59fsor o631tp[/url] c1a0ab3

    回复

发表评论

电子邮件地址不会被公开。 必填项已用*标注