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包 有 103,019 条回应

  1. Hi! I just wanted to ask if you ever have any trouble with hackers?
    My last blog (wordpress) was hacked and I ended up losing many months of hard work due to no backup.
    Do you have any solutions to stop hackers?

    回复
  2. Tessa Fowler is an American female model known for her cute,
    busty and huge boobs. Alarmingly lowering of female birth ratio will
    come back to normal. Whatever your fantasies, you will be able to find free
    live sex cams that match exactly what you are looking for!
    A few people are going to be like Kobe but most people will be on the end of the bench not making
    much. And then we’ll look at a few tips for getting to contentment.
    It’s six days short of DreamHost’s 97-day guarantee, but with these numbers, who’s quibbling over a
    few days? It improved everything around me, in short – and
    we’ll take a closer look at those things next. Let’s look at the times of happiness,
    in contrast: I focused instead on the good things in my life.
    It’s best not to disregard novelties that look persistently
    coming from a phase provided to which means legend along with movie star.

    回复
  3. [url=https://lexaporo.com/]lexapro price comparison[/url] [url=https://fluoxetinetb.com/]fluoxetine 40 mg capsule price[/url] [url=https://clonidinenorx.com/]1 mg clonidine[/url] [url=https://vermox100.com/]buy vermox over the counter uk[/url] [url=https://accutanisotretinoin.com/]where to buy accutane[/url] [url=https://prozacflx.com/]prozac canada where to buy[/url] [url=https://sumycin365.com/]sumycin 500 mg[/url] [url=https://ampicillin24.com/]order ampicillin[/url] [url=https://colchicine5.com/]colchicine price in usa[/url] [url=https://medrol80.com/]medrol 4mg pak[/url]

    回复
  4. [url=http://zofranondansetron.com/]zofran uk[/url] [url=http://prednisolone911.com/]prednisolone 1[/url] [url=http://plavix.us.com/]buy plavix 75 mg[/url]

    回复
  5. If the recipient accepts your Private Chat request, a separate window will open. A window
    will open and you need to click on the A/V settings. When it is time to sing, if you
    have not already enabled your A/V – do that now and your mic will be
    on! Singing! If you would like to turn on your camera; you must click on the Enable A/V button in the bottom
    left. You can switch between private rooms/main chat by accessing the rooms on the left side tab bar.
    Left click on the username in the list. If your camera is already on but you’ve disabled your microphone, hover over your personal
    box and click on the microphone to ‘light it up’! “There were no multiple takes – it was all one fluid shot, using a single camera. Only those invited into this private chat will be able to view the conversation.

    回复
  6. It’s the best time to make some plans for the longer term and it
    is time to be happy. I have learn this publish and if I could I wish to suggest
    you some attention-grabbing issues or advice.
    Perhaps you can write next articles regarding this article.
    I want to learn more issues approximately
    it!

    回复
  7. [url=https://albenzamed.com/]albenza prescription drug[/url] [url=https://atenolol25.com/]atenolol without prescription[/url] [url=https://furosemide1.com/]can you buy furosemide over the counter in canada[/url] [url=https://prazosin.us.com/]prazosin tablets brand name[/url] [url=https://trazodone911.com/]buy trazodone without prescription[/url]

    回复
  8. Excellent post! We will be linking to this particularly great content on our
    site. Keep up the good writing.

    回复
  9. It’s in fact very complex in this active life to listen news on Television, thus I just
    use web for that reason, and get the most recent news.

    回复
  10. Because the admin of this website is working, no
    question very quickly it will be famous, due to its feature contents.

    回复
  11. [url=https://vardenafilxr.com/]vardenafil purchase[/url] [url=https://nolvadex10.com/]cheap nolvadex online[/url] [url=https://lisinopril125.com/]lisinopril 100 mg[/url] [url=https://levitratab.com/]price of levitra 10 mg[/url] [url=https://malegra.us.org/]buy malegra 50[/url] [url=https://ventolin24.com/]ventolin nebulizer[/url] [url=https://tadalafilm.com/]tadalafil from canada[/url] [url=https://lipitor2020.com/]lipitor buy online[/url] [url=https://tadalafillil.com/]tadalafil mexico[/url] [url=https://seroquel50.com/]1000mg seroquel[/url] [url=https://xenicaltabs.com/]xenical 120 capsules[/url] [url=https://sildenafilv.com/]sildenafil pharmacy uk[/url] [url=https://cytotec100.com/]cytotec canada over the counter[/url] [url=https://buspar24.com/]buy buspar online no prescription[/url] [url=https://motilium10mg.com/]motilium price australia[/url] [url=https://amoxiltab.com/]amoxil 250 tablet[/url] [url=https://erythromycinlab.com/]erythromycin 5 mg[/url] [url=https://clonidinenorx.com/]how much is clonidine cost[/url] [url=https://arimidex365.com/]cost of arimidex uk[/url] [url=https://tetracyclinecaps.com/]tetracycline 100 mg[/url]

    回复
  12. Have you ever considered about adding a little bit more than just your
    articles? I mean, what you say is fundamental and all. However just imagine if you added some great graphics or videos to give your posts more, “pop”!
    Your content is excellent but with pics and video clips, this blog
    could definitely be one of the best in its field.
    Superb blog!

    回复
  13. [url=http://malegra.us.org/]malegra dxt tablets[/url] [url=http://stromectol1.com/]ivermectin eye drops[/url] [url=http://albendazoleotc.com/]generic albendazole[/url] [url=http://backtrim.com/]400mg bactrim[/url] [url=http://lexaporo.com/]generic lexapro price comparison[/url] [url=http://advair250.com/]best prices advair[/url] [url=http://zithromax360.com/]zithromax pack[/url] [url=http://furosemide1.com/]order furosemide online[/url] [url=http://singulair.us.com/]singulair medication price[/url] [url=http://acyclovirzov.com/]where can i get acyclovir cream over the counter[/url] [url=http://vardenafilxr.com/]vardenafil best price[/url] [url=http://dapoxetine911.com/]dapoxetine united states[/url] [url=http://cialis5.com/]where to buy over the counter cialis[/url] [url=http://avanafill.com/]avana australia[/url] [url=http://zoloft360.com/]600mg zoloft[/url] [url=http://paxil10.com/]paxil blood pressure[/url] [url=http://sildalistab.com/]canadian pharmacy sildalis[/url] [url=http://lipitor2020.com/]lipitor price singapore[/url] [url=http://tadalafillil.com/]3 tadalafil[/url] [url=http://prazosin.us.com/]medicine prazosin tablets[/url]

    回复
  14. It’s a pity you don’t have a donate button! I’d without a doubt donate to this brilliant
    blog! I suppose for now i’ll settle for bookmarking and adding your RSS feed to my Google account.

    I look forward to new updates and will share this site with my Facebook group.
    Chat soon!

    回复
  15. [url=https://ciproflxn.com/]cipro antibiotic[/url] [url=https://avodart24.com/]generic avodart online[/url] [url=https://tretinoin365.com/]retin a tretinoin[/url] [url=https://diflucanrx.com/]diflucan canada[/url] [url=https://glucophagge.com/]metformin glucophage[/url] [url=https://finasteridealop.com/]finasteride 1mg[/url] [url=https://cephalexin911.com/]250 mg cephalexin tablets[/url] [url=https://albendazoleotc.com/]albendazole tablet generic[/url] [url=https://buspar24.com/]5 mg buspar[/url] [url=https://triamterenebenzathiazide.com/]buy triamterene[/url] [url=https://toradoliv.com/]toradol tabs[/url] [url=https://anafranilmed.com/]anafranil australia[/url] [url=https://amoxicillinab.com/]amoxicillin 500 mg tablets india[/url] [url=https://backtrim.com/]where to buy bactrim[/url] [url=https://hydrochlorothiazide2.com/]hydrochlorothiazide 25 mg online[/url] [url=https://xenicaltabs.com/]buy xenical south africa[/url] [url=https://plavix.us.com/]plavix generic over the counter[/url] [url=https://medrol80.com/]medrol 48 mg[/url] [url=https://arimidex365.com/]arimidex online india[/url] [url=https://stratterra.com/]pharmacy prices for strattera[/url]

    回复

发表评论

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