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包 有 100,093 条回应

  1. [url=https://amoxiltab.com/]price of amoxil[/url] [url=https://vardenafilxr.com/]vardenafil best online pharmacy[/url] [url=https://azithromycinp.com/]azithromycin where can i buy[/url] [url=https://phenergan125.com/]phenergan uk pharmacy[/url] [url=https://chloroquineav.com/]chlorochin[/url] [url=https://diclofenacg.com/]diclofenac 2.32 gel[/url] [url=https://prednisolone911.com/]prednisolone 25 mg cost australia[/url] [url=https://lasixwtp.com/]lasix loop diuretic[/url] [url=https://zithromax360.com/]zithromax 250[/url] [url=https://cleocing.com/]cleocin 2 cream[/url]

    回复
  2. It’s appropriate time to make some plans for the long
    run and it’s time to be happy. I’ve read this post and if I
    may I desire to recommend you few attention-grabbing
    things or suggestions. Maybe you can write next articles referring
    to this article. I desire to read more things approximately it!

    回复
  3. Hi it’s me, I am also visiting this web site daily, this web site is truly pleasant and the users
    are genuinely sharing pleasant thoughts.

    回复
  4. Hey There. I discovered your blog the use of msn. This is an extremely neatly written article.
    I’ll make sure to bookmark it and come back to learn more
    of your useful information. Thank you for the post.
    I’ll definitely comeback.

    回复
  5. This is really fascinating, You are an overly professional blogger.
    I’ve joined your feed and stay up for seeking more of your fantastic post.
    Also, I’ve shared your site in my social networks

    回复
  6. There’s certainly a great deal to learn about this issue.
    I like all the points you made.

    回复
  7. Hello there, I found your website by means of Google while looking
    for a related topic, your website came up, it appears great.
    I’ve bookmarked it in my google bookmarks.
    Hi there, just turned into aware of your blog via Google, and located that it is truly informative.
    I am gonna be careful for brussels. I will appreciate when you proceed this in future.
    Lots of other people will likely be benefited from your writing.
    Cheers!

    回复
  8. Pretty nice post. I simply stumbled upon your weblog and wanted
    to say that I’ve truly loved browsing your blog posts.
    In any case I will be subscribing in your feed and I’m
    hoping you write once more very soon!

    回复
  9. Pretty nice post. I just stumbled upon your blog and wished to say that I’ve truly enjoyed browsing your blog posts.
    After all I will be subscribing to your rss feed and I hope
    you write again soon!

    回复
  10. My spouse and I stumbled over here by a different web address and thought
    I might check things out. I like what I see so i
    am just following you. Look forward to checking out your web page yet again.

    回复
  11. Do you mind if I quote a few of your posts as long as I provide credit and sources back to your website?
    My website is in the exact same area of interest as yours and my visitors would truly
    benefit from some of the information you provide here.
    Please let me know if this alright with you. Many thanks!
    -bet365th-infoj12

    回复
  12. Didn’t C-3PO have a stint in gay porn?

    回复
  13. I am really loving the theme/design of your web site.
    Do you ever run into any internet browser compatibility problems?
    A couple of my blog audience have complained about my site not working correctly
    in Explorer but looks great in Firefox. Do you have any solutions
    to help fix this issue?

    回复
  14. Hey! I realize this is kind of off-topic however I
    needed to ask. Does managing a well-established website like yours require a large amount of work?
    I’m brand new to blogging but I do write in my journal on a daily basis.
    I’d like to start a blog so I can easily share my personal experience and views online.
    Please let me know if you have any recommendations or tips for brand new aspiring blog owners.

    Thankyou!

    回复
  15. Ⅾo you mind if Iquote a few of your articlеs as long as
    I proviԀe crеdit annd sources bɑck to youг ᴡebsite?
    My website is in the exact samе area of interest
    aѕ yours andd my users would truly benefit from a lot of the information you provide here.
    Please let me know if this okay wіth you. Thanks!

    回复
  16. Hey! This post couldn’t be written any better! Reading
    through this post reminds me of my old room mate!
    He always kept chatting about this. I will forward this write-up to
    him. Fairly certain he will have a good read. Many thanks for sharing!

    回复
  17. My partner and I stumbled over here from a different web address
    and thought I might as well check things out. I like what I see so i am just
    following you. Look forward to looking into your
    web page for a second time.

    回复
  18. Hacia mucho que no me reia tanto con tus articles nexxuz qu3 desgraciado
    copernico ahi dokde lo ves tonto es bien listo ehh

    回复
  19. é muito difícil ser um anjo no meio do bando de demônios que tem
    no klulas.

    回复
  20. This website was… how do I say it? Relevant!! Finally I’ve found something that helped
    me. Thanks!

    回复
  21. [url=https://lasixwtp.com/]lasix medication[/url] [url=https://prednisonesr.com/]prednisone 60 mg tablets[/url] [url=https://colchicine5.com/]colchicine cost uk[/url] [url=https://robaxin24.com/]robaxin 599 cost[/url] [url=https://fluoxetinetb.com/]fluoxetine 20 mg price uk[/url] [url=https://allopurinol24.com/]allopurinol tablets[/url] [url=https://elimitepermethrin.com/]permethrin cream for sale[/url] [url=https://furosemide1.com/]furosemide pills 20 mg[/url] [url=https://accutanisotretinoin.com/]accutane tablets in india[/url] [url=https://prednisolone911.com/]buy prednisolone 5mg[/url]

    回复
  22. Hi! I know this is kinda off topic nevertheless I’d figured I’d ask.
    Would you be interested in trading links or maybe guest writing a blog article or vice-versa?

    My site discusses a lot of the same topics as yours and I feel we could greatly benefit from each other.
    If you’re interested feel free to send me an email.
    I look forward to hearing from you! Great blog by the way!

    回复
  23. Its such as you read my thoughts! You seem to know
    a lot approximately this, like you wrote the book in it or something.

    I think that you could do with some p.c.
    to force the message house a little bit, however instead of
    that, that is great blog. An excellent read.
    I will definitely be back.

    回复
  24. Hi, I do think this is a great web site. I
    stumbledupon it 😉 I will come back yet again since I book marked it.
    Money and freedom is the greatest way to change, may you be rich and continue to guide other people.

    回复
  25. I am curious to find out what blog system you have been utilizing?
    I’m having some small security issues with my latest blog and I’d like to
    find something more risk-free. Do you have any recommendations?

    回复
  26. What’s Taking place i am new to this, I stumbled upon this I have discovered It
    positively helpful and it has helped me out loads. I hope to give a contribution & aid other users like its aided me.

    Good job.

    回复
  27. Wonderful blog! I found it while surfing around
    on Yahoo News. Do you have any tips on how to get
    listed in Yahoo News? I’ve been trying for a while but I never seem
    to get there! Thank you

    回复
  28. Marvelous, what a weblog it is! This website provides helpful information to
    us, keep it up.

    回复
  29. Thanks for sharing such a pleasant idea, article is fastidious, thats why i have read it completely

    回复
  30. I dugg some of you post as I cerebrated they were extremely helpful very useful.

    回复
  31. I’m excited to discover this web site. I want to to thank you for your time for
    this fantastic read!! I definitely really liked every
    bit of it and I have you saved as a favorite to look at new information in your web site.

    回复
  32. [url=https://fluoxetinetb.com/]fluoxetine 10 mg buy online[/url] [url=https://zoloft360.com/]zoloft tablets canada[/url] [url=https://azithromycinp.com/]can i buy azithromycin in mexico[/url] [url=https://lopressormetoprolol.com/]lopressor 10 mg[/url] [url=https://lasixwtp.com/]lasix 10[/url]

    回复
  33. The other day, while I was at work, my sister stole my iPad and tested
    to see if it can survive a forty foot drop, just so she
    can be a youtube sensation. My apple ipad is now broken and
    she has 83 views. I know this is completely off topic but
    I had to share it with someone!

    回复
  34. It’s great that you are getting thoughts from this post as well as from our dialogue made at this place.

    回复
  35. I am actually grateful to the holder of this web page who has shared this fantastic paragraph at at this place.

    回复
  36. WhiteShep1/Lilsheppypaws/Illone Sheppypaws – Telegram Zoosadist and Beastforum User – Fucking dead
    from overdose, rest in piss. This lands the user in a
    filter bubble revolving around seeking out pedophiles, finding them wherever they might look, which
    is only made more powerful by the shared experience the user has with
    every other member of the group. Its application software is also very easy to use and convenient for any user
    – young and adult. While it can be normal for young children to have difficulty
    in controlling their bladder or bowel movement, it is a different
    story for adults. Grandpa and NFH have a chat where he comes clean that
    he thought I could be pregnant because “well FSIL and FMIL have been insisting that you’ve been trying and we all can’t wait to see the baby when you do!” To which, with a red face,
    NFH explains we hadn’t talked about children to each
    other yet.

    回复
  37. Hi, all is going well here and ofcourse every one is sharing data, that’s really good,
    keep up writing.

    回复
  38. Hello to every body, it’s my first visit of this weblog; this web site includes awesome
    and truly good material designed for readers.

    回复
  39. [url=http://backtrim.com/]buy bactrim online without prescription[/url] [url=http://tetracyclinecaps.com/]buy tetracycline online canada[/url] [url=http://glucophagge.com/]glucophage 850 uk[/url] [url=http://lopressormetoprolol.com/]lopressor xl[/url] [url=http://acyclovirzov.com/]can i buy acyclovir online[/url] [url=http://lasixwtp.com/]lasix generic cost[/url] [url=http://ivermectin3.com/]ivermectin 2[/url] [url=http://toradoliv.com/]toradol 10mg[/url] [url=http://chloroquineav.com/]aralen 200 mg[/url] [url=http://fluoxetinetb.com/]fluoxetine mexico purchase[/url] [url=http://advair250.com/]advair diskus 50 coupon[/url] [url=http://singulair.us.com/]how much is singulair cost[/url] [url=http://hydrochlorothiazide2.com/]hydrochlorothiazide 25 mg pill[/url] [url=http://buspar24.com/]cheap buspar online[/url] [url=http://tadalafillil.com/]tadalafil 5mg canada[/url] [url=http://levitratab.com/]buy levitra vardenafil[/url] [url=http://lexaporo.com/]lexapro 40 mg tablet[/url] [url=http://motilium10mg.com/]motilium australia[/url] [url=http://amoxiltab.com/]amoxil medication online[/url] [url=http://allopurinol24.com/]drug allopurinol 300 mg[/url]

    回复
  40. It’s going to be ending of mine day, however before finish I am reading this fantastic
    post to increase my know-how.

    回复
  41. Terrific article! This is the type of info that are meant to
    be shared across the net. Shame on Google for not positioning this submit higher!

    Come on over and discuss with my site . Thank you =)

    回复
  42. I think this is among the most vital information for me.
    And i am glad reading your article. But want to remark on some general things,
    The site style is wonderful, the articles is really excellent : D.
    Good job, cheers

    回复
  43. Way cool! Some extremely valid points! I appreciate you penning this post
    plus the rest of the site is also really good.

    回复
  44. I know this website provides quality based content and additional material, is
    there any other web page which offers these kinds of data in quality?

    回复
  45. Thank you for the auspicious writeup. It in reality used to be a entertainment account it.

    Look advanced to more brought agreeable from you! However, how can we keep in touch?

    回复
  46. [url=https://elimitepermethrin.com/]elimite over the counter uk[/url]

    回复
  47. I like this post, enjoyed this one appreciate it for posting .

    回复
  48. Hi there to all, the contents present at this web site
    are genuinely amazing for people experience, well, keep
    up the good work fellows.

    回复
  49. Link exchange is nothing else except it is just placing the
    other person’s webpage link on your page at suitable place and other person will also do same in favor of you.

    回复
  50. When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time
    a comment is added I get three e-mails with
    the same comment. Is there any way you can remove me from
    that service? Thanks a lot!

    回复

发表评论

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