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包 有 69,740 条回应

  1. personal sex cams [url=https://sexcams00.online]live sex cams for free [/url] how many girls are on sex cams.
    cheap live sex cams [url=https://sexcams00.online]sexcams00[/url] real inhome sex cams.
    free sex cams hd [url=https://sexcams00.live]sexcams00[/url] free sex talk cams.
    college live sex cams [url=https://sexcams00.space]sexcams00[/url] wife sex cams.
    fav sex cams [url=https://sexcams00.live]free sex cams live [/url] chaturbate sex cams.
    live private sex cams [url=https://sexcams00.xyz]top sex cams [/url] trailer park go on live web cams to have and show having sex party.
    free college sex cams [url=https://sexcams00.online]sex cams at home [/url] panty hose sex cams.
    stream live sex cams [url=https://sexcams00.space]sexcams00.space[/url] live cams sex.

    回复
  2. Piece of writing writing is also a fun, if you know afterward
    you can write otherwise it is complicated to write.

    回复
  3. Hey! Do you use Twitter? I’d like to follow you if that would be ok.

    I’m absolutely enjoying your blog and look forward to new updates.

    回复
  4. live anal sex cams [url=https://sexcams00.website]free girl sex cams [/url] free sex cams pussy.
    fantasy sex cams [url=https://sexcams00.club]sexcams00.club[/url] sex cams st.louis.
    live tranny sex cams [url=https://sexcams00.work]uk sex cams [/url] are sex cams illegal in ukraine.
    best live sex cams [url=https://sexcams00.club]free hd sex cams [/url] live pussy cams sex messaging local.
    sex cams porn [url=https://sexcams00.xyz]sexcams00.xyz[/url] amateur family sex web cams porn.
    free bbw sex cams [url=https://sexcams00.xyz]sexcams00[/url] young girl sex cams.
    asian live sex cams [url=https://sexcams00.site]sexcams00[/url] greek sex cams.
    sex cams chat [url=https://sexcams00.live]ive sex cams [/url] ten sex cams.

    回复
  5. [url=https://onlineloan.us.com/]loan application online[/url]

    回复
  6. I think it was from Animoto or Premiere

    回复
  7. Excellent info. With thanks!
    [url=http://azithromycinmsnrxmsnrx.best/]azitromicina bula[/url] [url=http://comprarbaclofensinreceta.com/]Buy Baclofen Online From Uk[/url] [url=http://online-retin-a-cheap.com/]retin-a cream[/url] [url=http://robaxin.fr/]Robaxin 500 Mg[/url] [url=http://flagyl.fr /]metronidazol[/url]

    回复
  8. Thanks a lot for sharing this with all of us you actually realize what you are talking approximately!
    Bookmarked. Please also talk over with my website =).

    We will have a link trade agreement between us

    回复
  9. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point.
    You clearly know what youre talking about,
    why waste your intelligence on just posting videos to your weblog when you could
    be giving us something informative to read?

    回复
  10. Having read this I thought it was extremely informative. I appreciate you finding the
    time and energy to put this article together. I once again find myself personally spending a significant
    amount of time both reading and posting comments. But so what, it was still worth it!

    回复
  11. Excellent, what a web site it is! This web site provides
    useful data to us, keep it up.

    回复
  12. I do not even know the way I stopped up here, however I believed this
    submit was once good. I do not recognize who you might be however certainly you’re going to a famous blogger if you aren’t already.
    Cheers!

    回复
  13. I loved as much as you will receive carried out right here.
    The sketch is tasteful, your authored material stylish.
    nonetheless, you command get bought an edginess over that you wish be delivering the following.

    unwell unquestionably come further formerly again as exactly the same nearly very often inside
    case you shield this hike.

    回复
  14. continuously i used to read smaller content which also clear their motive, and that is also happening with
    this post which I am reading now.

    回复
  15. Welcome to Israel. In this escort directory section, you find Israel
    escorts. Euro Girls Escort is the most trusted escort directory
    and among the biggest 21girlz directory. All content
    and photos are regularly checked and updated
    with real photos. This makes certain, that most escort Ads are usually up to date and brings you the most effective experience.

    This portion of the catalogue features luxury companions providing escort services.

    Israel escorts works in elite escort agencies, as an unbiased escorts or
    in local strip clubs, dancing clubs, brothels, lap-dance bars
    and cabarets. Most of the high class ladies do travel worldwide.
    You may even want to make use of call girl services – these escort girls can either work incall or outcall.
    Such elite escorts might be invited to an accommodation or you can visit them
    in their place.

    回复
  16. [url=https://ampicillintabs.com/]buy ampicillin[/url] [url=https://anafranil24.com/]anafranil price[/url] [url=https://cytotecrx.com/]cytotec for miscarriage[/url] [url=https://colchicinelab.com/]colchicine 0.6 mg tablet brand name in india[/url] [url=https://kamagrabest.com/]kamagra 100 mg tablet[/url]

    回复
  17. Hey, you used to write fantastic, but the last few posts have been kinda boring?
    I miss your great writings. Past several posts
    are just a bit out of track! come on!

    回复
  18. Informative article, exactly what I was looking for.

    回复
  19. Howdy! This is kind of off topic but I need some advice from an established blog.
    Is it difficult to set up your own blog? I’m not very techincal but I can figure things out
    pretty quick. I’m thinking about setting up my own but I’m not sure where to start.

    Do you have any points or suggestions? With thanks

    回复
  20. transexual sex cams [url=https://sexcams00.xyz]web sex cams [/url] gif amateur couples sex cams.
    top ten sex cams [url=https://sexcams00.work]sexcams00.work[/url] reallife time appartments sex h1 cams.
    sex cams like omegle [url=https://sexcams00.live]indian sex cams [/url] brother sister sex cams.
    absolutely free sex cams [url=https://sexcams00.work]live jasmine sex cams [/url] chinese sex cams.
    male sex cams [url=https://sexcams00.live]sexcams00[/url] big boobs free sex cams.
    watch sex cams [url=https://sexcams00.space]sexcams00[/url] nude sex live cams.
    live black sex cams [url=https://sexcams00.space]sexcams00[/url] milf couples sex cams.
    free group sex cams [url=https://sexcams00.website]sexcams00[/url] real amatuer unwanted gangbang sex cams.

    回复
  21. You could certainly see your enthusiasm in the work you
    write. The arena hopes for even more passionate writers such
    as you who aren’t afraid to mention how they believe.
    At all times go after your heart.

    回复
  22. We are a group of volunteers and opening a new scheme in our community.
    Your website provided us with valuable info to work on. You’ve done a
    formidable job and our entire community will be grateful to you.

    回复
  23. uk sex cams [url=https://sexcams00.website]sexcams00.website[/url] forced date sex cams.

    回复
  24. Right here is the perfect site for anyone who really wants to undsrstand this topic.
    You understand so much its almost hard to argue with you (not that I
    personally will need to…HaHa). You definitely put a brand new spin oon a topic which has been written ahout for ages.
    Excellent stuff, just great!
    web site

    回复
  25. What i don’t realize is in truth how you’re not actually a lot
    more smartly-favored than you might be right now.
    You’re very intelligent. You know thus considerably
    in the case of this topic, produced me for my part believe it from a lot of various angles.
    Its like men and women aren’t interested except it’s something to accomplish with Woman gaga!

    Your own stuffs outstanding. Always handle it up!

    回复
  26. Very soon this site will be famous among all blogging and site-building viewers, due to it’s pleasant articles or reviews

    回复
  27. This web site certainly has all the information and facts I wanted concerning this subject and didn’t know who to ask. | а

    回复
  28. Everything is very open with a very clear explanation of the challenges.
    It was truly informative. Your site is useful. Thanks
    for sharing!

    回复
  29. [url=https://amoxicillin05.com/]buy amoxicillin uk[/url] [url=https://lisinoprilht.com/]buy lisinopril[/url] [url=https://cozaar24.com/]generic cozaar[/url] [url=https://augmentinmed.com/]buy augmentin online[/url] [url=https://vardenafilmed.com/]where to buy vardenafil[/url] [url=https://diflucanmed.com/]diflucan generic[/url]

    回复
  30. [url=http://ciprorx.com/]cipro 250[/url] [url=http://hydroxychloroquine4.com/]buy hydroxychloroquine[/url] [url=http://lasixsale.com/]lasix 40 price[/url] [url=http://advairdsk.com/]advair 230 mg[/url]

    回复
  31. Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.| а

    回复
  32. [url=https://wellbutrin911.com/]wellbutrin 100[/url] [url=https://finasteride24.com/]propecia .5 mg[/url] [url=https://buspar365.com/]buspar 25mg[/url] [url=https://lexepro.com/]lexapro 10mg[/url] [url=https://celexa24.com/]where to buy celexa[/url] [url=https://citalopram24.com/]citalopram hydrobromide 20mg[/url] [url=https://retinacrm.com/]retin a pill[/url] [url=https://hydroxychlorequine.com/]buy hydroxychloroquine online[/url] [url=https://vardenafilmed.com/]buy vardenafil[/url] [url=https://kamagrabest.com/]buy kamagra[/url] [url=https://diflucanmed.com/]diflucan generic[/url] [url=https://paxil24.com/]buy paxil[/url] [url=https://albenzamed.com/]where can i buy albenza[/url] [url=https://lisinoprilht.com/]lisinopril generic price[/url] [url=https://zithromaxcov.com/]zithromax without a script[/url] [url=https://amoxilb.com/]buy amoxil online cheap[/url] [url=https://elimitepermethrin.com/]elimite otc[/url] [url=https://colchicinelab.com/]colchicine 0.6[/url] [url=https://metforminmed.com/]metformin 500[/url] [url=https://bectrim.com/]bactrim 800[/url]

    回复
  33. Keep on writing, great job!

    回复
  34. Hello there! Would you mind if I share your blog with my facebook group?

    There’s a lot of people that I think would really appreciate your content.
    Please let me know. Thank you

    回复
  35. What’s up to every one, it’s truly a nice for me to pay a quick visit this web
    page, it consists of helpful Information.

    回复
  36. office sex cams [url=https://sexcams00.work]live ebony sex cams [/url] hidden cams used in men’s prisons to film sex acts.
    massive sex cams [url=https://sexcams00.xyz]sexcams00[/url] live sex on web cams.
    live tranny sex cams [url=https://sexcams00.live]live sex cams for free [/url] midget sex cams.
    sex cams couples [url=https://sexcams00.xyz]sexcams00.xyz[/url] teen house sex cams.
    youtube sex cams [url=https://sexcams00.space]sexcams00.space[/url] drunk sex orgy shower cams.
    cheapest sex cams [url=https://sexcams00.online]sexcams00.online[/url] private sex cams.
    sex cams for free [url=https://sexcams00.online]best sex cams [/url] hidden home sex cams.
    totally free live sex cams [url=https://sexcams00.live]free adult sex cams [/url] morocco sex cams.

    回复
  37. Unquestionably believe that which you said. Your favorite reason appeared to be on the web the simplest thing
    to be aware of. I say to you, I definitely get irked while people think about worries
    that they plainly do not know about. You managed to hit the nail upon the
    top and defined out the whole thing without having side effect ,
    people could take a signal. Will likely be back to get more.
    Thanks

    回复
  38. This is really fascinating, You’re an excessively professional
    blogger. I’ve joined your rss feed and stay up for in the hunt for extra of your magnificent post.
    Additionally, I have shared your web site in my
    social networks

    回复
  39. You actually explained this wonderfully! [url=http://nolvadex.fr/]Endometrial Cancer From Tamoxifen[/url]

    回复
  40. You actually said it really well!
    [url=http://hydrochlorothiazide25mgtab.com/]losartan hydrochlorothiazide[/url] [url=http://stratterarx.fr/]Iodine Strattera[/url] [url=http://canadianonlinepharmacytrust.com/]approved canadian online pharmacies[/url] [url=http://cialistl.com/]cialis pills[/url]

    回复
  41. watch sex cams [url=https://sexcams00.site]totaly free sex cams [/url] free mobile sex cams.
    naked sex cams [url=https://sexcams00.website]sexcams00[/url] sex caught on cams.
    sex cams chat [url=https://sexcams00.site]free mature sex cams [/url] mexico sex massage spy cams.
    family sex cams [url=https://sexcams00.space]boys sex cams [/url] hidden cams used to view males having sex in department stores.
    tumblr hidden sex cams [url=https://sexcams00.site]sexcams00[/url] david and carrie real life cams sex.
    redtube live sex cams [url=https://sexcams00.online]sexcams00.online[/url] sex cams with random people.
    two way sex cams [url=https://sexcams00.space]sexcams00.space[/url] free live home sex cams.
    sex cams xxx [url=https://sexcams00.work]sexcams00[/url] live asian sex cams.

    回复
  42. Many thanks. Quite a lot of material!
    [url=http://valtrex.fr/]Valtrex Pills Online[/url]

    回复
  43. live online sex cams and free sex chat rooms [url=https://sexcams00.work]swinger sex cams [/url] girlgirl nakeds geting fucked hidden cams sex nudes full frontal hairy pubescent nudes,.

    回复
  44. Link exchange is nothing else but it is simply placing the other
    person’s website link on your page at appropriate place and other person will also do similar in support of you.

    回复
  45. I think the admin of this web page is truly
    working hard in support of his site, for the reason that here
    every material is quality based data.

    回复
  46. Amazing forum posts. Kudos!
    [url=http://azithromycinmaxim.com/]azithromycin[/url] [url=http://nolvadex.fr/]Pulse Ears Tamoxifen[/url] [url=http://atenololmsnrxmsnrx.best/]atenolol bnf[/url] [url=http://bactrim.fr/]Lupus And Bactrim[/url] [url=http://canadianpharmacyntv.com/]aarp approved canadian online pharmacies[/url] [url=http://femara.fr/]famara[/url]

    回复
  47. Just want to say your article is as amazing. The clearness on your publish is just
    spectacular and i could assume you’re knowledgeable in this subject.
    Fine along with your permission allow me to seize your RSS
    feed to stay updated with coming near near post.
    Thanks a million and please carry on the gratifying work.

    回复
  48. [url=http://prednisolone360.com/]prednisolone 5mg[/url] [url=http://zithromaxcov.com/]buy zithromax[/url] [url=http://fluoxetinemed.com/]fluoxetine 10 mg tablet[/url] [url=http://diflucanmed.com/]diflucan generic price[/url]

    回复
  49. Wow quite a lot of very good material. [url=http://amoxicillin-amoxil.com/]Brand Amoxil 500mg Without A Doctor Prescription[/url]

    回复
  50. I was very pleased to uncover this page. I need to to thank you for ones time just for this fantastic read!!
    I definitely really liked every bit of it
    and I have you bookmarked to check out new information in your
    blog.

    回复

发表评论

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