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包 有 30,877 条回应

  1. Cialis is an ED treatment drug and can be called generic viagra [url=http://korolev-mama.ru/?option=com_k2&view=itemlist&task=user&id=760518]just click the following page[/url] as super Viagra. One can even buy drugs like generic Cialis or even prescribed Cialis that one may otherwise generic viagra [url=http://stenoservicesrl.it/?option=com_k2&view=itemlist&task=user&id=752737]click the next internet site[/url] hesitate in buying. One can buy any prescribed drug, or a generic drug, viagra pills [url=http://maqui.com.mx/?option=com_k2&view=itemlist&task=user&id=598]have a peek at these guys[/url] any time from an online pharmacy. In Canada, viagra online [url=http://www.divinooweb.com/?option=com_k2&view=itemlist&task=user&id=7653]Full Survey[/url] you can buy it without a prescription for a tenth of that price.

    In case you loved this information and you want to receive more information regarding buy viagra [url=http://rafy.sk/?option=com_k2&view=itemlist&task=user&id=51756]Recommended Web site[/url] please visit our web site.

    回复
  2. adult webcam free
    [url=https://theocrostirab.tk]adult webcams xxx [/url]
    adult web cams free
    [url=https://thinbeisurolor.gq]adult webcam rooms [/url]
    adult webcam site

    回复
  3. [url=https://oldictuihampe.ml]adult webcam models [/url]
    [url=https://asbacombuybrin.ga]adult webcam roulette [/url]

    回复
  4. adult webcam chat site
    [url=https://theocrostirab.tk]adult webcam girls [/url]
    adult web cams free
    [url=https://thinbeisurolor.gq]adult webcam chat site [/url]
    adult webcam chat free

    回复
  5. [url=https://diflucan5.com/]can you buy diflucan over the counter in usa[/url]

    回复
  6. [url=https://levitramed.com/]levitra for sale online[/url] [url=https://accutanrx.com/]buy accutane 20mg[/url] [url=https://valtrex24.com/]cost of valtrex in canada[/url] [url=https://clomid150.com/]clomid pills[/url] [url=https://celebrexotc.com/]buy celebrex[/url]

    回复
  7. adult webcam script
    [url=https://idunarproph.ml]idunarproph.ml[/url]
    adult webcam.com
    [url=https://caphapupolas.ga]caphapupolas.ga[/url]
    adult webcam

    回复
  8. [url=http://vardenafill.com/]cheap vardenafil online[/url] [url=http://albendazole365.com/]albendazole buy online usa[/url] [url=http://fluoxetine1000.com/]fluoxetine 20 mg over the counter[/url] [url=http://albuterol365.com/]generic albuterol[/url] [url=http://arimidexsale.com/]best price for arimidex[/url] [url=http://zoloft24.com/]buy zoloft online cheap[/url] [url=http://levitramed.com/]buy levitra[/url]

    回复
  9. adult webcam review
    [url=https://idunarproph.ml]idunarproph.ml[/url]
    adult webcam live
    [url=https://caphapupolas.ga]caphapupolas[/url]
    adult webcam chat room

    回复
  10. [url=https://oldictuihampe.ml]adult webcam roulette [/url]
    [url=https://asbacombuybrin.ga]free adult webcam to webcam [/url]

    回复
  11. adult webcam free
    [url=https://theocrostirab.tk]theocrostirab.tk[/url]
    adult webcam chat site
    [url=https://thinbeisurolor.gq]adult webcam roulette [/url]
    adult webcam forum

    回复
  12. [url=https://valtrex24.com/]valtrex 2 g[/url]

    回复
  13. [url=https://prednisonester.com/]prednisone 10mg online[/url] [url=https://avodart24.com/]avodart[/url] [url=https://arimidexsale.com/]order arimidex[/url] [url=https://valtrex24.com/]buy valtrex online[/url] [url=https://doxycyclinehycl.com/]where can i buy doxycycline[/url]

    回复
  14. free adult webcam site
    [url=https://theocrostirab.tk]adult webcam chat sites [/url]
    adult webcam
    [url=https://thinbeisurolor.gq]adult webcam script [/url]
    adult webcam free

    回复
  15. Hi there! [url=http://pharmacyonline.ru.com/]http://pharmacyonline.ru.com[/url] – pharmacy online uk great web site

    回复
  16. [url=https://oldictuihampe.ml]free adult webcam site [/url]
    [url=https://asbacombuybrin.ga]adult webcam rooms [/url]

    回复
  17. adult webcam chat free
    [url=https://idunarproph.ml]idunarproph[/url]
    adult webcam software
    [url=https://caphapupolas.ga]caphapupolas[/url]
    adult webcam software

    回复
  18. Hi there! [url=http://rxpharmacy.ru.com/]online pharmacy tramadol[/url] beneficial web page.

    回复
  19. [url=http://prednisonetl.com/]prednisone generic[/url] [url=http://doxycyclinehycl.com/]can i buy doxycycline over the counter uk[/url] [url=http://sildenafilvg.com/]buy sildenafil 20 mg[/url] [url=http://sildenafilgen.com/]sildenafil canada buy[/url] [url=http://levitramed.com/]cheap generic levitra india[/url]

    回复
  20. adult webcam fun
    [url=https://idunarproph.ml]idunarproph[/url]
    adult webcam chat sites
    [url=https://caphapupolas.ga]caphapupolas[/url]
    adult webcams site

    回复
  21. [url=https://oldictuihampe.ml]free adult webcam shows [/url]
    [url=https://asbacombuybrin.ga]adult webcam faq [/url]

    回复
  22. 2020-01-25 在 20:40 WhatPex

    It is the amount which a policyholder needs to pay upfront at the time of claim. [url=http://www.sogballet.org/?is-it-safe-to-purchase-clomid-online]is it safe to purchase clomid online[/url] By using this website, you accept the terms of our visitor agreement and privacy policy, and understand your options regarding ad choices.

    回复
  23. adult webcam chat free
    [url=https://theocrostirab.tk]theocrostirab.tk[/url]
    adult webcamming
    [url=https://thinbeisurolor.gq]thinbeisurolor.gq[/url]
    free adult webcam site

    回复
  24. adult webcam work
    [url=https://theocrostirab.tk]adult webcams [/url]
    adult webcam video
    [url=https://thinbeisurolor.gq]thinbeisurolor.gq[/url]
    adult web chat

    回复
  25. jungle scout competitors

    Awesome blog! Do you have any tips for aspiring writers?
    I’m hoping to start my own website soon but I’m a little lost on everything.
    Would you advise starting with a free platform like WordPress or
    go for a paid option? There are so many options out there that I’m completely
    confused .. Any tips? Many thanks!

    回复
  26. adult webcam show
    [url=https://idunarproph.ml]idunarproph.ml[/url]
    adult webcam videos
    [url=https://caphapupolas.ga]caphapupolas.ga[/url]
    adult webcams

    回复
  27. [url=https://oldictuihampe.ml]adult webcam.com [/url]
    [url=https://asbacombuybrin.ga]adult webcam fun [/url]

    回复

AlanWed进行回复 取消回复

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