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包 有 82,388 条回应

  1. Pretty nice post. I simply stumbled upon your weblog and wanted
    to say that I’ve really enjoyed surfing around your blog
    posts. After all I’ll be subscribing to your rss feed
    and I’m hoping you write once more soon!

    回复
  2. polish sex cams [url=https://sexcams00.club]mature sex cams [/url] live sex cams sex toys manhunt flix availability:.
    free live sex cams couples [url=https://sexcams00.work]exhabitionist sex cams [/url] tsdarkangel sex cams.
    best live sex cams free [url=https://sexcams00.club]sexcams00.club[/url] hidden sex cams beach gay.
    recorded sex cams [url=https://sexcams00.space]nude sex cams [/url] livejasmin sex cams.
    tasty hot latinas sex cams [url=https://sexcams00.work]sexcams00.work[/url] hidden camera at sex hidden voyeur cams hidden spy cam sex.
    lesbian free sex cams [url=https://sexcams00.live]sexcams00[/url] free sex face to face cams.
    free live lesbian sex cams [url=https://sexcams00.live]sexcams00.live[/url] free sex cams for couples live.
    chaturbate free sex cams [url=https://sexcams00.website]sexcams00.website[/url] pregnant sex web cams.

    回复
  3. [url=https://onlineloan.us.com/]online cash advance[/url]

    回复
  4. Effectively expressed without a doubt. .
    [url=http://comprarbaclofensinreceta.com/]zanaflex[/url] [url=http://femara.fr/]famara[/url]

    回复
  5. Hello, I would like to subscribe for this weblog to obtain most recent updates, therefore where can i do it please help.

    回复
  6. free live sex cams no credit card [url=https://sexcams00.online]women sex cams [/url] forced sex on nylons cams.
    home amateurs sex cams [url=https://sexcams00.live]free male sex cams [/url] reallife cams hairy sex.
    streamate live sex cams [url=https://sexcams00.website]sexcams00[/url] reccomended cams for sex web cams.
    totaly free sex cams [url=https://sexcams00.live]live gay sex cams [/url] the reallife spy sex cams.
    cam4 live sex cams [url=https://sexcams00.club]sexcams00[/url] sex tube cams.
    free live local sex cams [url=https://sexcams00.space]sexcams00[/url] real family sex cams.
    sex cams jasmine [url=https://sexcams00.work]live male sex cams [/url] sex face to face cams.
    sex cams at home [url=https://sexcams00.website]sexcams00[/url] chaturbate – free adult webcams, live sex, free sex chat, exhibitionist & pornstar free cams.

    回复
  7. Great post. I was checking constantly this blog and I’m
    impressed! Extremely helpful info specially the last part 🙂 I care for such information a lot.
    I was seeking this certain info for a very long time.
    Thank you and best of luck.

    回复
  8. I am truly grateful to the owner of this site who has shared this great piece of writing
    at here.

    回复
  9. At tuis moment I am ggoing away to do my breakfast,
    afterward having mmy breakfast coming over again to read mmore news.

    Gra poker free poker poker online game

    回复
  10. Good day! This is my first visit to your blog!

    We are a collection of volunteers and starting a new project in a community in the same niche.
    Your blog provided us valuable information to work on. You have done a
    marvellous job!

    回复
  11. [url=https://elimitepermethrin.com/]buy elimite[/url] [url=https://allopurinolm.com/]allopurinol 300 mg[/url] [url=https://ampicillintabs.com/]where to buy ampicillin[/url] [url=https://amoxicillinrem.com/]amoxicillin tablets for sale[/url] [url=https://metforminmed.com/]metformin brand name canada[/url] [url=https://prednisonetabs.com/]buy prednisone online[/url] [url=https://kamagrabest.com/]buy kamagra[/url] [url=https://acyclovirv.com/]acyclovir tablets[/url] [url=https://advairdsk.com/]advair diskus[/url] [url=https://zoloftsert.com/]zoloft mexico[/url]

    回复
  12. free male sex cams [url=https://sexcams00.website]sexcams00[/url] live adult woman sex cams in ky.
    new sex cams [url=https://sexcams00.club]hidden sex cams videos [/url] lealulu sex cams.
    live sex cams’ [url=https://sexcams00.website]sex cams no credit card [/url] anorei sex cams.
    live sex cams naked [url=https://sexcams00.site]sexcams00.site[/url] amateur virgin honeymoon internal cum sex cams.
    girls live sex cams [url=https://sexcams00.space]real sex cams [/url] free live sex cams gangbangs.
    stream live sex cams [url=https://sexcams00.space]free milf sex cams [/url] pregnant sex web cams.
    xhamster sex cams [url=https://sexcams00.online]sexcams00.online[/url] free sex cams for couples live.
    kinky sex cams [url=https://sexcams00.live]bbw sex cams [/url] real amatuer gang rape sex cams.

    回复
  13. Excellent article! We are linking to this great post on our website.

    Keep up the good writing.

    回复
  14. I was able to find good advice from your articles.

    回复
  15. Hey there! Do you know if they make any plugins to
    help with SEO? I’m trying to get my blog to rank for some targeted
    keywords but I’m not seeing very good results. If you know of any please share.

    Cheers!

    回复
  16. Excellent post. I was checking continuously this blog and I’m
    impressed! Very useful information specifically the
    last part 🙂 I care ffor such info a lot. I was looking
    for this certain information for a long time. Thank you and
    good luck.

    回复
  17. This design is spectacular! You most certainly know how to keep
    a reader entertained. Between your wit and your videos,
    I was almost moved to start my own blog (well, almost…HaHa!) Excellent
    job. I really loved what you had to say, and more than that,
    how you presented it. Too cool!

    回复
  18. Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something.
    I think that you can do with a few pics to drive the message home a little bit, but instead
    of that, this is excellent blog. A fantastic read.
    I will definitely be back.

    回复
  19. hardcore live sex cams [url=https://sexcams00.online]sexcams00.online[/url] black on blonde free live cams sex.

    回复
  20. I am sure this post has touched all the internet viewers, its
    really really good post on building up new webpage.

    回复
  21. With thanks! Quite a lot of material.
    [url=http://buymodafinilntx.com/][/url]

    回复
  22. Admiring the commitment you put into your website and detailed information you
    present. It’s awesome to come across a blog every once in a while
    that isn’t the same unwanted rehashed information. Fantastic read!
    I’ve bookmarked your site and I’m including your RSS feeds to my
    Google account.

    回复
  23. young sex cams [url=https://sexcams00.website]sexcams00.website[/url] sex tube cams.
    live sex cams no credit card [url=https://sexcams00.space]free live naked sex cams [/url] hidden home sex cams.
    sex cams 19 [url=https://sexcams00.space]free lesbian sex cams [/url] absolutely free sex cams.
    sex cams’ [url=https://sexcams00.site]girls sex cams [/url] 1 on one sex cams.
    best live sex cams free [url=https://sexcams00.work]tasty hot latinas sex cams [/url] rockford illinois hidden sex cams.
    sex cams’ [url=https://sexcams00.website]sexcams00[/url] private home cams wifes nude & sex.
    senior sex cams [url=https://sexcams00.online]sexcams00[/url] 95 cents sex cams.
    sex cams 101 [url=https://sexcams00.work]sexcams00[/url] sex web cams live.

    回复
  24. Pretty! This has been a really wonderful article.
    Many thanks for supplying this information.

    回复
  25. Hi, every time i used to check webpage posts here in the early hours in the
    dawn, as i like to find out more and more.

    回复
  26. lais volta aqui poe as regras de volta

    回复
  27. Heya i am for the first time here. I found this board and I to find
    It truly helpful & it helped me out much. I’m hoping to offer
    something again and aid others like you helped me.

    回复
  28. Peculiar article, exactly what I was looking for.

    回复
  29. I just could not leave your web site before suggesting that I actually enjoyed the
    standard information a person supply to your visitors?
    Is going to be again often to check up on new posts

    回复
  30. free live amateur sex cams [url=https://sexcams00.website]pantyhose sex cams [/url] women horse sex tube/female-cams/.
    real free sex cams [url=https://sexcams00.live]100 free sex cams [/url] milf resists sex cams.
    chat sex cams [url=https://sexcams00.live]sexcams00.live[/url] sex cams face to face facetime free.
    local live sex cams [url=https://sexcams00.work]swinger sex cams [/url] security cams sex.
    nude live sex cams [url=https://sexcams00.space]sexcams00.space[/url] free web cams public sex.
    family sex cams [url=https://sexcams00.space]web sex cams [/url] teen girls sex cams free.
    fee sex cams [url=https://sexcams00.website]sexcams00.website[/url] live sex cams straight men in u.s.a..
    hardcore live sex cams [url=https://sexcams00.website]sexcams00[/url] free stripper sex cams.

    回复
  31. P᧐st writing is also a excitement, іf you know afterwaгd you can write if not it
    is complex to write.

    回复
  32. Many thanks! Good information.
    [url=http://retinarx.fr/]Generic Tretinoin 0 1 Cream[/url] [url=http://citalopram.fr/]acticin[/url] [url=http://advairdiskus-247buy.com/]generic advair diskus[/url] [url=http://inderalrxlist.com/]Order Propranolol 20mg No Script[/url] [url=http://femara.fr/]Femara Twins[/url] [url=http://viagrapython.com/]how long does viagra last[/url] [url=http://canadianpharmaceuticalsonlinerx.com/]canadian pharmacy viagra brand[/url]

    回复
  33. Superb info. Many thanks. [url=http://metformin.fr/]Hydrochlorothiazide And Metformine Side Effects[/url]

    回复
  34. [url=http://fluoxetinemed.com/]buy fluoxetine[/url]

    回复
  35. anal sex cams [url=https://sexcams00.online]real sex cams [/url] muslim sex cams.
    new sex cams [url=https://sexcams00.site]filipino sex cams [/url] normal couple sex cams.
    naked live sex cams [url=https://sexcams00.live]sexcams00[/url] sex cams\.
    live sex cams guys [url=https://sexcams00.space]live lesbian sex cams [/url] bestt live streaming sex cams.
    kinky sex cams [url=https://sexcams00.online]sexcams00.online[/url] sex video live cams muslim.
    fre live sex cams [url=https://sexcams00.online]free sex cams no credit card [/url] family sex cams site:pornhub.com.
    voyuer sex cams [url=https://sexcams00.site]amateur hiden cams mature sex tape [/url] 2 way sex cams.
    amature hidden sex cams [url=https://sexcams00.site]arab sex cams [/url] submitted user net web cams sex.

    回复
  36. Its like you read my mind! You appear to know a lot about
    this, like you wrote the book in it or something.
    I think that you could do with a few pics to drive the message home a little bit,
    but other than that, this is fantastic blog. A fantastic read.
    I’ll definitely be back.

    回复
  37. Terrific posts. Appreciate it! [url=http://bactrim.fr/]bactrim antibiotic[/url]

    回复
  38. You said it perfectly.!
    [url=http://advair-coupons.com/]advair[/url] [url=http://zithromaxrx.fr/]azithromycin 250 mg[/url] [url=http://bactrim.fr/]Buy Liquid Bactrim[/url] [url=http://the-baclofen.com/]Difference Between Soma Baclofen[/url] [url=http://aciclovir.fr/]Acyclovir 500 Mg[/url] [url=http://cheap-retin-a-micro.com/]Generic Tretinoin Cost[/url]

    回复
  39. Simply wish 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 updated with forthcoming post. Thanks a million and please carry
    on the gratifying work.

    回复
  40. I love you toooo and we will have sex but I’m not too sure about the
    babies. you’re welcome …

    回复
  41. boys sex cams [url=https://sexcams00.work]family sex cams [/url] sex cams in cars.
    video live sex cams [url=https://sexcams00.live]sexcams00[/url] teen cams caught haveing sex.
    top free sex cams [url=https://sexcams00.online]free live sex cams free [/url] jerky sex cams jenny.
    streaming live sex cams [url=https://sexcams00.xyz]ebony sex cams [/url] black on blonde free live cams sex.
    mexico sex cams [url=https://sexcams00.space]granny sex cams [/url] porn live sex cams.
    free no sign up sex cams [url=https://sexcams00.club]sexcams00[/url] domestic sex cams.
    best live sex cams [url=https://sexcams00.club]sexcams00.club[/url] nude sex live cams.
    libe sex cams [url=https://sexcams00.website]sexcams00[/url] hidden cams home sex.

    回复
  42. I do trust all of the ideas you’ve offered for your post.
    They are really convincing and will certainly work. Nonetheless, the posts
    are too quick for novices. Could you please lengthen them a little from subsequent time?

    Thanks for the post.

    回复
  43. live gay male sex cams [url=https://sexcams00.website]the best free sex cams [/url] sex cams site:xvideos.com.

    回复
  44. Heya this is kinda of off topic but I was wondering
    if blogs use WYSIWYG editors or if you have to manually code with HTML.

    I’m starting a blog soon but have no coding expertise so I wanted to
    get advice from someone with experience.

    Any help would be greatly appreciated!

    回复
  45. Hi, I believe your blog may be having internet browser compatibility problems.

    When I look at your site in Safari, it looks fine
    but when opening in Internet Explorer, it’s got some overlapping issues.

    I just wanted to give you a quick heads up! Aside from
    that, wonderful site!

    回复
  46. It’s awesome to go to see this website and reading the views of all mates regarding this article, while I am also eager of getting knowledge.

    回复
  47. Howdy! I’m at work browsing your blog from my new iphone 3gs!
    Just wanted to say I love reading through your blog and look forward
    to all your posts! Keep up the superb work!

    回复
  48. Appreciate it, Quite a lot of facts.

    [url=http://alisinoprilus.com/]Buy Lisinopril 10 Mg Online[/url] [url=http://cymbaltamsnrxmsnrx.best/]cymbalta medication[/url] [url=http://fluoxetine.fr/]Ativan Prozac Drug Interactions[/url] [url=http://lasix.fr/]paroxetine hydrochloride[/url] [url=http://retinarx.fr/]tretinoin gel[/url] [url=http://tretinoin.fr/]kaletra[/url]

    回复
  49. Oh my goodness! Impressive article dude! Many thanks, However I am experiencing troubles with your RSS.
    I don’t know why I am unable to join it. Is there anyone else getting identical RSS problems?
    Anyone that knows the solution will you kindly respond? Thanks!!

    回复
  50. sex cams now [url=https://sexcams00.xyz]reddit sex cams [/url] live pussy cams sex messaging 1 on 1.
    watch free sex cams [url=https://sexcams00.xyz]sexcams00[/url] real life cams sex.
    bonja sex cams [url=https://sexcams00.site]tranny sex cams [/url] amatures caught on cams having sex.
    free live sex cams and chat [url=https://sexcams00.space]sexcams00[/url] tiny teen zcheck amayeur web cams sex movies.
    live tranny sex cams [url=https://sexcams00.site]sexcams00[/url] hidden sex night cams.
    mexico sex cams [url=https://sexcams00.club]random sex cams [/url] uncensored ebony adult two way sex cams.
    naked sex cams [url=https://sexcams00.xyz]amature sex cams [/url] real amateur home sex cams.
    mexico sex cams [url=https://sexcams00.site]live private sex cams [/url] private sex cams.

    回复

发表评论

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