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包 有 70,803 条回应

  1. heather faye baxter amateur porn [url=https://amateurwebcams00.xyz]amateur granny anal pics [/url] amateure tiny teen gallalet.
    thai fuck porn gif [url=https://asianwebcams00.website]asianwebcams00[/url] japanese mom forced uncensored hd porn.
    big black ass with white cock xnxx [url=https://blackwebcams00.icu]black lesbians having sex [/url] black teen girl old man porn.
    college guy drunk in the tub [url=https://collegewebcams00.site]nude wet college girls [/url] college naked gay men in love.
    old and young scat lesbians [url=https://lesbianwebcams01.fun]lesbianwebcams01.fun[/url] lesbian fucks gay boy henti.
    meaty mature pussies porn [url=https://maturewebcams00.space]sexy nude mature ladies [/url] beautiful nude blonde maturs amatdur.
    big tits milf huge cock creampie sex videos [url=https://milfwebcams00.club]danielle english milf porn pictures [/url] hot young sexy milf gifs.
    beauty angels solo teen jenny ass pics lingerie [url=https://teenwebcams00.uno]sweet teen pussy gifs [/url] thin sexy nude ebony teen.
    real homemade amateur halloween [url=https://amateurwebcams00.monster]amateur milfs in porn [/url] really cute amateur pussy.
    asian mom fuck my son home make [url=https://asianwebcams00.host]asianwebcams00.host[/url] 2 splendid asian prostitutes porn.
    gay blacks 69 sex [url=https://blackwebcams00.pw]black girl white dick anal [/url] fat ebony lassie porn.
    college babes thighes xxx [url=https://collegewebcams00.store]college girl first black dick [/url] college seniors girls having sex.
    japanese lesbian forced groping website [url=https://lesbianwebcams00.fun]alyssa lynn porn lesbian [/url] old lesbian seduces married women.
    amateur mature getting a mouthful of cum [url=https://maturewebcams00.club]maturewebcams00[/url] tall hairy mature porn.
    big milf pussy tumblr [url=https://milfwebcams00.casa]milfwebcams00.casa[/url] hot milfs in public.
    teen funs dina nude leather [url=https://teenwebcams00.press]teenwebcams00.press[/url] teen force fucked gif.

    回复
  2. Excellent post. I used to be checking continuously this
    weblog and I am impressed! Extremely useful information specifically the last phase 🙂 I deal with such information a lot.

    I used to be looking for this particular info for a very lengthy
    time. Thanks and good luck.

    回复
  3. Thanks a lot! A lot of forum posts!

    [url=http://atenololmsnrxmsnrx.best/]Tenoretic Increased Urination[/url] [url=http://antabuse.fr/]antabus[/url]

    回复

发表评论

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