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包 有 83,004 条回应

  1. [url=https://ivermectin.us.org/]ivermectin buy[/url] [url=https://nexium.us.org/]nexium[/url] [url=https://hydroxychloroquinecv.com/]buy hydroxychloroquine[/url] [url=https://prednisolone.us.org/]purchase prednisolone 5mg tablets[/url] [url=https://zovirax.us.com/]buy zovirax[/url]

    回复
  2. Whoa plenty of fantastic material! [url=https://viaonlinebuyntx.com/]cheapest viagra[/url]
    [url=http://blog.tutecnologo.es/2010/07/14/primeros-pasos-a-dar-al-darse-de-alta-en-una-red-social/red-social-privacidad/comment-page-2281/#comment-683703]h770mkn c33jno[/url] 3fc1a0a

    回复
  3. You actually revealed this terrifically. [url=https://top7writingservices.com/]writing service[/url]
    [url=https://www.tankerderbanker.dk/blog/en-tro-folgesvend-og-uven-i-noden-2019-03-20?page=24795#comment-1345093]p880loh b12xrx[/url] 8_963da

    回复
  4. [url=https://tamoxifenpct.com/]where to buy tamoxifen in singapore[/url] [url=https://retina.us.org/]retin a micro[/url] [url=https://amitriptyline24.com/]amitriptyline 10 mg[/url] [url=https://cialisprice.us.org/]cialis without a doctor[/url] [url=https://motrin.us.com/]generic motrin[/url]

    回复
  5. Kudos. Great stuff. [url=https://viagrapython.com/]womens viagra pill[/url]
    [url=http://oksana-mukha.com.ua/primeta/#comment429887]u71mcdg n41ovq[/url] 9e1e6_5

    回复
  6. Thanks a lot, Lots of postings!
    [url=https://paydayloansttf.com/]loan online[/url]
    [url=http://mcnamee.ie/cms/index.php/forum/suggestion-box/1222527-z29vjvv-b88lsh#1311848]z29vjvv b88lsh[/url] e1e6_e2

    回复
  7. Good content. Thanks a lot! [url=https://viagradjango.com/]generic viagra[/url]
    [url=https://www.tankerderbanker.dk/blog/en-tro-folgesvend-og-uven-i-noden-2019-03-20?page=25039#comment-1359269]z48dhtu j266js[/url] 03fc1a0

    回复
  8. [url=https://wellbutrin.us.org/]wellbutrin 200 mg[/url] [url=https://cialisprice.us.org/]cialis price[/url] [url=https://hydroxychloroquine.us.com/]hydroxychloroquine online[/url] [url=https://cephalexin365.com/]buy cephalexin[/url] [url=https://amitriptyline24.com/]cost of amitriptyline 10mg uk[/url] [url=https://attarax.com/]buy atarax 25mg[/url] [url=https://nexium.us.org/]nexium best prices[/url] [url=https://retina.us.org/]order retin a gel[/url] [url=https://lipitor.us.org/]lipitor 40[/url] [url=https://priligy.us.com/]generic priligy[/url]

    回复
  9. Effectively expressed really. . [url=https://homeworkcourseworkhelp.com/]homework[/url]
    [url=http://glushkova-92b.i-virgo.com/kunena/oq/359084-h143el8-k642vo#359953]h143el8 k642vo[/url] 0ab390e

    回复
  10. [url=https://domperidone.us.com/]buy domperidone[/url]

    回复
  11. You suggested this exceptionally well. [url=https://canadianpharmaceuticalsonlinerx.com/]canada drugs online pharmacy[/url]
    [url=http://bythebloodofthelamb.com.ng/2018/07/13/the-cobweb/#comment-68105]l58swr7 r601dk[/url] 127c03f

    回复
  12. Incredible a good deal of awesome tips. [url=https://buymodafinilntx.com/]modafinil[/url]
    [url=http://hollymariecombs.info/forum/viewtopic.php?f=19&t=1879687]k16lpnk p394wf[/url] a0ab390

    回复
  13. [url=https://proscar.us.com/]proscar buy[/url] [url=https://tamoxifenpct.com/]tamoxifen arimidex[/url] [url=https://hydroxychlorothiazide.com/]hydrochlorothiazide capsules 12.5 mg[/url] [url=https://malegra.us.org/]buy malegra dxt[/url] [url=https://trazodonesale.com/]trazodone 100 mg pill[/url] [url=https://ivermectin.us.org/]stromectol 3 mg[/url] [url=https://flomax.us.com/]flomax generic[/url] [url=https://priligy.us.com/]buy priligy[/url] [url=https://zovirax.us.com/]zovirax buy[/url] [url=https://chloroquine.us.org/]online chloroquine[/url]

    回复
  14. This is nicely put. . [url=https://canadianpharmaceuticalsonlinerx.com/]canada drugs online[/url]
    [url=http://christmas.regenbogenwiese.net/index.php?guestbook-entry/4066986-y288rkb-v852iz/]y288rkb v852iz[/url] b390e5c

    回复
  15. Hey! This post could not be written any better! Reading this post reminds me of my previous room mate!
    He always kept chatting about this. I will forward this article to him.

    Pretty sure he will have a good read. Thank you for sharing!

    回复
  16. This piece of writing will help the internet users for creating new web site or even a blog from start
    to end.

    回复
  17. Let’s face it, you can’t really make a balanced decision without sampling the goods first.
    I discovered that I could act and make people laugh.

    One of the reasons why I wrote this article is to help people
    realize to not depend on interpreted emotions. To put it simply, a pink Interactive banner means the model’s sex
    toy can be activated by tipping her, the blue one means it can also be activated in other ways, and
    the purple one means that the model can control your sex toy,
    if you have a remote controlled one. All the
    effort you put in to look handsome will be in vain if you don’t notch up your conversational
    skills. However, the same investment you put in this marriage that has now gone
    flat (from your perspective) will only be repeated
    in your next relationship with the OM because you lack character
    that causes you to so easily fall in love with someone outside of your relationship.

    I worked hard to collect sites that will offer you all hours upon hours of hot live adult cam entertainment.

    If you end up spending even a few hours a week on Flirt4Free, seriously consider its VIP program.

    回复
  18. You mentioned it fantastically. [url=https://top7writingservices.com/]professional resume writing service[/url]
    [url=http://www.sickautos.com/?q=node/30&page=189#comment-13707]x77cvll o495ep[/url] 3fc1a0a

    回复
  19. [url=http://ivermectin.us.org/]ivermectin pills[/url] [url=http://hydroxychlorothiazide.com/]cost of hydrochlorothiazide 12.5 mg[/url] [url=http://cialisprice.us.org/]cialis price[/url] [url=http://singulair.us.com/]buy singulair[/url] [url=http://tamoxifenpct.com/]buy tamoxifen[/url] [url=http://motrin.us.com/]motrin 800 mg[/url]

    回复
  20. [url=https://priligy.us.com/]priligy pills[/url] [url=https://zovirax.us.com/]zovirax buy[/url] [url=https://hydroxychloroquine.us.com/]hydroxychloroquine over the counter[/url] [url=https://malegra.us.org/]buy malegra dxt[/url] [url=https://lipitor.us.org/]lipitor 20 mg[/url]

    回复
  21. Cheers, Plenty of content!
    [url=https://viagrapython.com/]can women take viagra[/url]
    [url=http://163.32.94.234/artcms/forum/viewtopic.php?pid=344340#p344340]a67hohe q85huj[/url] 127c03f

    回复
  22. [url=http://retina.us.org/]retin-a generic[/url] [url=http://metformin.us.org/]metformin[/url] [url=http://chloroquinaralen.com/]chloroquine phosphate 500 mg 7 tablets[/url] [url=http://hydroxychloroquine.us.com/]hydroxychloroquine sulfate[/url] [url=http://prazosin.us.com/]prazosin 2mg[/url] [url=http://amitriptyline24.com/]amitriptyline cost india[/url] [url=http://azithromycin.us.org/]buy azithromycin[/url] [url=http://singulair.us.com/]singulair coupon[/url]

    回复
  23. Nicely put. Kudos! [url=https://canadianonlinepharmacytrust.com/]canada drugs direct[/url]
    [url=http://oksana-mukha.com.ua/siniy-tsvet/#comment430566]o44ecgk m313wp[/url] 03fc1a0

    回复
  24. Just want to say your article is as astonishing.
    The clearness in your post is just spectacular and
    i can assume you are an expert on this subject. Fine with your permission allow me
    to grab your RSS feed to keep up to date with forthcoming post.
    Thanks a million and please continue the rewarding work.

    回复
  25. [url=http://priligy.us.com/]generic priligy[/url] [url=http://chloroquine.us.org/]chloroquine for sale[/url] [url=http://attarax.com/]atarax for ic[/url] [url=http://bupropion365.com/]bupropion sr 150 mg tablets[/url] [url=http://tamoxifenpct.com/]tamoxifen medication[/url] [url=http://lipitor.us.org/]lipitor brand price[/url] [url=http://hydroxychloroquinecv.com/]plaquenil nz[/url] [url=http://azithromycin.us.org/]buy azithromycin 250mg online[/url] [url=http://prednisolone.us.org/]buy prednisolone online[/url] [url=http://metformin.us.org/]metformin[/url] [url=http://malegra.us.org/]malegra 100 for sale[/url] [url=http://zovirax.us.com/]generic for zovirax[/url] [url=http://flomax.us.com/]price of flomax[/url] [url=http://prazosin.us.com/]prazosin 1mg[/url] [url=http://chloroquinaralen.com/]buy chloroquine phosphate[/url] [url=http://domperidone.us.com/]motilium 10mg[/url] [url=http://trazodonesale.com/]buy trazodone[/url] [url=http://hydroxychloroquine.us.com/]plaquenil discount[/url] [url=http://wellbutrin.us.org/]generic for wellbutrin[/url] [url=http://amitriptyline24.com/]amitriptyline 5mg[/url]

    回复
  26. thanks lots this site will be conventional in addition to relaxed

    回复
  27. [url=http://azithromycin.us.org/]buy azithromycin with no prescription[/url] [url=http://retina.us.org/]generic retin a gel[/url] [url=http://malegra.us.org/]malegra online[/url] [url=http://tamoxifenpct.com/]cheap tamoxifen[/url] [url=http://trazodonesale.com/]trazodone 150 mg coupon[/url] [url=http://hydroxychloroquine.us.com/]buy hydroxychloroquine[/url] [url=http://bupropion365.com/]bupropion 150mg sr[/url] [url=http://metformin.us.org/]metformin[/url] [url=http://hydroxychloroquinecv.com/]hydroxychloroquine sulfate tabs[/url] [url=http://hydroxychlorothiazide.com/]hydrochlorothiazide 12.5[/url]

    回复
  28. Because the admin of this site is working, no
    uncertainty very shortly it will be famous, due to its
    feature contents.

    回复
  29. Incredible tons of excellent information! [url=https://paydayloansbbv.com/]what is a cash advance[/url]
    [url=http://oksana-mukha.com.ua/15/#comment434589]d82wrwq z444oj[/url] ab390e5

    回复
  30. With thanks! I appreciate it! [url=https://writingthesistop.com/]how to write a thesis statement[/url]
    [url=https://www.ostrov-kenguru.ru/board/viewtopic.php?f=102&t=1906153]j50prh2 d783cp[/url] 19e1e6_

    回复
  31. I love looking through an article that will make people think.
    Also, thanks for allowing for me to comment!

    回复
  32. Wow lots of terrific tips! [url=https://paydayloansbbv.com/]payday loans no credit check[/url]
    [url=https://hbcontract.com/shop/educational-furniture/early-education-kg-3/#comment-504595]c30zmml f46zqc[/url] c1a0ab3

    回复
  33. You mentioned that exceptionally well! [url=https://canadianonlinepharmacytrust.com/]canada drugs[/url]
    [url=http://www.5050clinic.com/bbs/view.php?id=Library&page=6&page_num=10&select_arrange=headnum&desc=&sn=off&ss=off&sc=off%A1%D7%AC%B3%AC%D1&keyword=&no=145&category=]z54xhx0 m61mqv[/url] c1a0ab3

    回复
  34. [url=https://cephalexin365.com/]cephalexin 500g[/url] [url=https://priligy.us.com/]buy priligy[/url] [url=https://chloroquine.us.org/]chloroquine pills[/url] [url=https://proscar.us.com/]buy proscar[/url] [url=https://attarax.com/]buy atarax[/url]

    回复
  35. [url=https://hydroxychlorothiazide.com/]buy hydrochlorothiazide[/url] [url=https://trazodonesale.com/]cost of trazodone 50 mg tablet[/url] [url=https://chloroquinaralen.com/]chloroquine online[/url] [url=https://chloroquine.us.org/]where to buy chloroquine[/url] [url=https://motrin.us.com/]1000 mg motrin[/url] [url=https://zovirax.us.com/]buy zovirax[/url] [url=https://prazosin.us.com/]prazosin hcl[/url]

    回复
  36. Can you tell us more about this? I’d want to find out some additional information.

    回复
  37. Amazing plenty of helpful facts. [url=https://writingthesistop.com/]thesis editing services[/url]
    [url=http://demo.wp-yar.ir/ronneby/product/fusce/#comment-209416]s34vxp7 q31hca[/url] c2ba641

    回复
  38. [url=https://metformin.us.org/]buy metformin online nz[/url] [url=https://chloroquine.us.org/]lariago[/url] [url=https://nexium.us.org/]otc nexium[/url]

    回复
  39. Kudos. I value this! [url=https://homeworkcourseworkhelp.com/]mathematics homework help[/url]
    [url=http://aboutsupercars.ru/cars/bugatti/chiron]d54rqc8 w594rh[/url] 127c03f

    回复
  40. [url=https://retina.us.org/]buy retin a gel online india[/url] [url=https://prednisolone.us.org/]prednisolone 15[/url] [url=https://hydroxychloroquinecv.com/]plaquenil generic price[/url] [url=https://proscar.us.com/]proscar online[/url] [url=https://duloxetine.us.com/]duloxetine[/url]

    回复
  41. Really tons of terrific advice! [url=https://dissertationwritingtop.com/]dissertations online[/url]
    [url=http://lidiavas.com/product/piling-dlya-tela-seriya-celebnye-travy/]l568ezz v63cdq[/url] c2ba641

    回复
  42. Good knowledge. Regards. [url=https://canadianpharmacyntv.com/]prescription drugs from canada online[/url]
    [url=http://beautylife.hk/blogsdetail.php?blogid=180528&type=]t64glk6 g51nju[/url] 7c03fc1

    回复
  43. What’s Happening i am new to this, I stumbled upon this I’ve discovered
    It positively helpful and it has helped me out loads.
    I’m hoping to give a contribution & help other users like its aided me.

    Good job.

    回复
  44. [url=https://retina.us.org/]buy retin a[/url] [url=https://zovirax.us.com/]zovirax 400 mg[/url] [url=https://chloroquinaralen.com/]buy chloroquine[/url] [url=https://domperidone.us.com/]motilium otc canada[/url] [url=https://wellbutrin.us.org/]generic wellbutrin 300mg[/url] [url=https://lipitor.us.org/]lipitor 2018[/url] [url=https://proscar.us.com/]buy proscar[/url] [url=https://hydroxychloroquinecv.com/]plaquenil generic 200 mg coupon[/url] [url=https://motrin.us.com/]motrin[/url] [url=https://prazosin.us.com/]prazosin 1 mg capsule[/url] [url=https://cialisprice.us.org/]can you buy cialis over the counter in south africa[/url] [url=https://amitriptyline24.com/]40 mg amitriptyline[/url] [url=https://prednisolone.us.org/]prednisolone us[/url] [url=https://hydroxychloroquine.us.com/]buy hydroxychloroquine[/url] [url=https://flomax.us.com/]flomax uk[/url] [url=https://hydroxychlorothiazide.com/]hydrochlorothiazide 12.5 mg tablet[/url] [url=https://cephalexin365.com/]keflex antibiotic[/url] [url=https://singulair.us.com/]singulair without prescription[/url] [url=https://nexium.us.org/]generic for nexium[/url] [url=https://azithromycin.us.org/]buy azithromycin[/url]

    回复
  45. Great delivery. Outstanding arguments. Keep up the good
    spirit.

    回复
  46. [url=http://bupropion365.com/]bupropion 150mg sr[/url] [url=http://trazodonesale.com/]trazodone for sale online[/url] [url=http://nexium.us.org/]nexium[/url] [url=http://singulair.us.com/]singulair canada over the counter[/url] [url=http://azithromycin.us.org/]azithromycin zithromax[/url]

    回复
  47. [url=https://duloxetine.us.com/]online cymbalta[/url] [url=https://hydroxychloroquinecv.com/]buy hydroxychloroquine[/url] [url=https://trazodonesale.com/]buy trazodone[/url] [url=https://zovirax.us.com/]buy zovirax[/url] [url=https://nexium.us.org/]nexium 40 mg price canada[/url] [url=https://attarax.com/]atarax 25mg without script[/url] [url=https://bupropion365.com/]bupropion sr 150 mg tab[/url] [url=https://priligy.us.com/]buy generic priligy[/url] [url=https://wellbutrin.us.org/]wellbutrin drug[/url] [url=https://lipitor.us.org/]buy lipitor[/url] [url=https://proscar.us.com/]generic proscar[/url] [url=https://retina.us.org/]retin a 0.25[/url] [url=https://malegra.us.org/]buy malegra 50[/url] [url=https://chloroquinaralen.com/]buy chloroquine[/url] [url=https://chloroquine.us.org/]chloroquine phosphate 500 mg tablet[/url] [url=https://amitriptyline24.com/]buy amitriptyline[/url] [url=https://singulair.us.com/]buy singulair[/url] [url=https://cephalexin365.com/]rx cephalexin[/url] [url=https://tamoxifenpct.com/]buy tamoxifen online[/url] [url=https://azithromycin.us.org/]how can i get azithromycin[/url]

    回复
  48. You revealed that wonderfully! [url=https://canadianpharmacyntv.com/]trust pharmacy canada[/url]
    [url=https://www.tankerderbanker.dk/blog/en-tro-folgesvend-og-uven-i-noden-2019-03-20?page=24911#comment-1351814]q18rkm3 g35wqv[/url] f19e1e6

    回复
  49. Fine stuff. Cheers! [url=https://essaywriting4you.com/]write college essays for money[/url]
    [url=https://www.tankerderbanker.dk/blog/en-tro-folgesvend-og-uven-i-noden-2019-03-20?page=24712#comment-1340256]u86ajof f37qpi[/url] f19e1e7

    回复

PaulWed进行回复 取消回复

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