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包 有 81,942 条回应

  1. [url=https://lasixwtp.com/]lasix 40 mg pill[/url]

    回复
  2. [url=http://tadalafilcls.com/]buy tadalafil[/url] [url=http://synthroidsale.com/]synthroid 100 mcg online[/url] [url=http://robaxinmed.com/]where to buy robaxin 750[/url]

    回复
  3. [url=https://iventolin.com/]ventolin for sale canada[/url]

    回复
  4. Kudos! Numerous content!

    [url=http://comprarbaclofensinreceta.com/]Zanaflex Schedule[/url] [url=http://trustedwebpharmacy.com/]top rated canadian pharmacies online[/url] [url=http://motiliumonline.fr/]Get Motilium 10mg Online[/url]

    回复
  5. [url=http://tadalafilcls.com/]tadalafil prices[/url] [url=http://accutanne.com/]accutane price[/url] [url=http://lasixwtp.com/]buy lasix[/url] [url=http://kamagraed.com/]kamagra generic drug[/url] [url=http://prednisonesr.com/]prednisone 10mg[/url]

    回复
  6. Hi there, just became aware of your blog through Google, and found that it is really informative.

    I’m going to watch out for brussels. I’ll appreciate if you continue
    this in future. A lot of people will be benefited from your writing.
    Cheers!

    回复
  7. Does your site have a contact page? I’m having problems locating it but,
    I’d like to shoot you an e-mail. I’ve got some recommendations for your
    blog you might be interested in hearing. Either way, great blog and I look forward to seeing
    it develop over time.

    回复
  8. Nice post. I learn something totally new and challenging on websites I stumbleupon every day.

    It’s always interesting to read content from other writers and use
    a little something from their websites.

    回复
  9. [url=https://ampicillin24.com/]ampicillin online[/url]

    回复
  10. [url=https://anafranilmed.com/]anafranil generic[/url]

    回复
  11. [url=https://amoxicillinlab.com/]amoxicillin 500mg capsules[/url]

    回复
  12. Hmm it seems like your website ate my first comment (it was extremely long) so I guess I’ll just sum it up what I wrote and say,
    I’m thoroughly enjoying your blog. I too am an aspiring
    blog writer but I’m still new to the whole thing.
    Do you have any recommendations for first-time blog writers?
    I’d genuinely appreciate it.

    回复
  13. [url=http://tadalafilrem.com/]tadalafil 5mg[/url]

    回复
  14. totaly free live sex cams [url=https://sexcams00.work]sexcams00[/url] adult couples sex web cams.
    hardcore sex cams [url=https://sexcams00.work]sexcams00.work[/url] cams 4 sex.
    private free sex cams [url=https://sexcams00.club]sexcams00[/url] teenie live sex cams.
    free live local sex cams [url=https://sexcams00.live]granny sex cams [/url] sex caught on hidden cams.
    ameture sex cams [url=https://sexcams00.space]sexcams00.space[/url] you tube hidden apt sex cams.
    live sex cams [url=https://sexcams00.space]sexcams00.space[/url] new york ebony live sex cams.
    hot free sex cams [url=https://sexcams00.space]private sex cams [/url] hidden gay sex cams beach.
    watch live sex cams [url=https://sexcams00.website]live sex cams com [/url] hd sex cams.

    回复
  15. interactive sex cams [url=https://sexcams00.xyz]free sex cams no credit card [/url] real life cams bedrooms sex.

    回复
  16. I know this if off topic but I’m looking into starting my own weblog and was curious what all is needed to get setup?
    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very web savvy so I’m not 100% positive.
    Any recommendations or advice would be greatly appreciated.
    Thank you

    回复
  17. Hi there colleagues, good paragraph and nice urging
    commented at this place, I am really enjoying by these.

    回复
  18. Great info, Many thanks!
    [url=http://larapropecia.com/]propecia[/url] [url=http://silagra.fr/]sildenafil 50 mg[/url]

    回复
  19. You have made some really good points there.
    I looked on the web to find out more about the issue and found most individuals will go along
    with your views on this website.

    回复
  20. I quite like reading an article that can make people
    think. Also, thanks for permitting me to comment!

    回复
  21. I like the valuable information you provide in your articles.
    I will bookmark your blog and check again here frequently. I’m quite sure I will learn lots
    of new stuff right here! Good luck for the next!

    回复
  22. [url=https://benicar24.com/]average cost of benicar[/url] [url=https://indocinrx.com/]indocin 50 mg[/url] [url=https://anafranilmed.com/]anafranil 25 mg tablet[/url] [url=https://seroquel365.com/]seroquel generic[/url] [url=https://amoxicillinzt.com/]amoxicillin 500mg capsules[/url] [url=https://baclofenonline.com/]buy baclofen[/url] [url=https://lasixwtp.com/]buy lasix[/url] [url=https://cialissr.com/]cialis generic[/url] [url=https://iventolin.com/]ventolin over the counter[/url] [url=https://accutanne.com/]buy accutane[/url]

    回复
  23. girls online sex dice game pamela anderson tommy porn school gays
    fuck teen ha-iden camera sexy blowjob …

    回复
  24. cheapest sex cams [url=https://sexcams00.work]israeli sex cams [/url] myfree cams anal sex.
    sex cams with sound [url=https://sexcams00.club]sexcams00.club[/url] sex cams porn.
    xhamster sex cams [url=https://sexcams00.club]sexcams00[/url] best free sex cams in fkrt wodth.
    personal sex cams [url=https://sexcams00.live]one on one sex cams [/url] young sex cams.
    latin sex cams [url=https://sexcams00.site]sexcams00[/url] live sex voulyer web cams.
    canadian sex cams [url=https://sexcams00.club]sexcams00[/url] hot europe sex cams.
    group sex cams [url=https://sexcams00.live]sexcams00.live[/url] live lesbian sex cams.
    moms sex cams [url=https://sexcams00.online]czech sex cams [/url] alive sex cams.

    回复
  25. [url=http://femalepinkviagra.com/]buy female viagra pills[/url] [url=http://tadalafilm.com/]generic tadalafil 20mg[/url] [url=http://indocinrx.com/]indomethacin indocin[/url] [url=http://prednisonesr.com/]compare prednisone prices[/url]

    回复
  26. [url=http://trazodonemed.com/]trazodone cost[/url]

    回复
  27. l know everyone is different. Some/many of my closest and best friends were so wild and funny and creative…it would be like caging the
    wind..

    imo at some point the ugly side of how ubiquitous porn-
    ugly porn metastasized into criminal social harm..

    substantial known harms

    回复
  28. Having read this I believed it was extremely enlightening.
    I appreciate you spending some time and energy to put this article together.
    I once again find myself spending way too much time both reading and leaving comments.
    But so what, it was still worthwhile!

    回复
  29. It’s going to be ending of mine day, however before end I am reading this fantastic article to improve my experience.

    回复
  30. Hello there! [url=https://clomid7.com/]buy chlamydomonas nivalis powder[/url] buy clomid

    回复
  31. [url=https://ampicillin24.com/]ampicillin 1000 mg[/url] [url=https://femalepinkviagra.com/]female pink viagra[/url] [url=https://levitrav.com/]levitra 75 mg[/url] [url=https://benicar24.com/]benicar price comparison[/url] [url=https://accutanne.com/]buy accutane[/url]

    回复
  32. You have made your position very nicely!.
    [url=http://ampicillin.fr/]ampicilline[/url] [url=http://inderal.fr/]propranolol 40 mg[/url] [url=http://stratterarx.fr/]Strattera Dosing By Weight[/url]

    回复
  33. [url=https://seroquel365.com/]seroquel xr for anxiety[/url]

    回复
  34. [url=https://toradolrx.com/]can i buy toradol over the counter[/url] [url=https://accutanne.com/]where can i buy accutane[/url] [url=https://tadalafilcls.com/]generic cialis tadalafil[/url] [url=https://prozacflx.com/]prozac price south africa[/url] [url=https://benicar24.com/]benicar canada[/url] [url=https://levitrav.com/]buy levitra[/url] [url=https://tadalafilm.com/]tadalafil 2.5 mg tablet[/url] [url=https://propeciaph.com/]generic propecia cost[/url] [url=https://baclofenonline.com/]baclofen drug[/url] [url=https://cymbaltarx.com/]cymbalta generic cost[/url]

    回复
  35. [url=https://accutanne.com/]buy accutane online india[/url]

    回复
  36. bedroom sex cams [url=https://sexcams00.xyz]local sex cams [/url] big thighs forced mature sex cams.

    回复
  37. [url=http://trazodonemed.com/]trazodone 50 mg[/url] [url=http://amoxicillinlab.com/]how to buy amoxicillin online[/url] [url=http://iventolin.com/]buy ventolin inhaler without prescription[/url] [url=http://accutanne.com/]20 mg accutane daily[/url] [url=http://tadalafilrem.com/]tadalafil 10[/url] [url=http://lasixwtp.com/]buy lasix[/url]

    回复
  38. [url=http://levitrav.com/]levitra pills[/url] [url=http://benicar24.com/]benicar hct[/url] [url=http://amoxicillinzt.com/]amoxicillin 875 mg tablet[/url]

    回复
  39. [url=https://sildenafilv.com/]sildenafil 100 mg uk[/url] [url=https://tadalafilcls.com/]tadalafil prices[/url]

    回复
  40. [url=http://prednisonestrd.com/]where to buy prednisone[/url] [url=http://lasixwtp.com/]order lasic no prescription[/url] [url=http://propeciaph.com/]order propecia online usa[/url] [url=http://sildenafilv.com/]sildenafil 100mg[/url] [url=http://tadalafilm.com/]tadalafil canadian[/url] [url=http://accutanne.com/]buy accutane[/url] [url=http://advairdisk.com/]advair diskus 250 50 mcg[/url] [url=http://benicar24.com/]benicar buy[/url]

    回复
  41. I truly love your website.. Very nice colors & theme.

    Did you make this site yourself? Please reply back as I’m looking to create
    my own blog and would love to learn where you got this from or just what the theme is called.
    Thanks!

    回复
  42. Hey! Someone in my Myspace group shared this site with us so
    I came to look it over. I’m definitely loving the information. I’m book-marking and will
    be tweeting this to my followers! Terrific blog and excellent design and style.

    回复
  43. fantasy sex cams [url=https://sexcams00.website]sexcams00[/url] sex on security cams.
    shared sex cams free [url=https://sexcams00.space]free live sex cams free [/url] nudetube.com – free nude girls and live nude sex cams.
    free interactive sex cams [url=https://sexcams00.xyz]sexcams00[/url] wild sex cams.
    sex cams xvideos [url=https://sexcams00.work]sexcams00.work[/url] reallife family sex cams.
    free streaming sex cams [url=https://sexcams00.space]free home sex cams [/url] animal sex cams.
    live sex cams bbw [url=https://sexcams00.website]sex cams no sign up [/url] free online sex cams with actual hot girls.
    free live web sex cams [url=https://sexcams00.website]sexcams00.website[/url] xname xname sex cams.
    amatuer sex cams [url=https://sexcams00.work]sexcams00.work[/url] free sex talk cams.

    回复
  44. [url=http://tadalafilrem.com/]tadalafil brand name[/url]

    回复
  45. Thanks a lot, Valuable information. [url=http://amoxicillin-amoxil.com/]amoxicillin 1000[/url]

    回复
  46. Great beat ! I wish to apprentice while you amend your website, how can i subscribe for a blog site?

    The account helped me a acceptable deal. I had been tiny bit acquainted
    of this your broadcast offered bright clear idea

    回复
  47. [url=http://ampicillin24.com/]ampicillin 500[/url] [url=http://robaxinmed.com/]robaxin 750 mg generic[/url] [url=http://femalepinkviagra.com/]female viagra buy online[/url] [url=http://trazodonemed.com/]trazodone generic pill[/url] [url=http://amoxicillinzt.com/]500 mg amoxicillin[/url] [url=http://baclofenonline.com/]baclofen 10mg[/url] [url=http://kamagraed.com/]kamagra 100mg tablets[/url] [url=http://accutanne.com/]buy accutane online[/url]

    回复
  48. If you wish for to obtain a good deal from this paragraph then you have to apply
    such techniques to your won web site.

    回复
  49. [url=http://tadalafilrem.com/]tadalafil 5mg[/url]

    回复

发表评论

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