定制centos7.7安装镜像默认内核5.5去除默认3.10内核
nanshan 2024-10-13 03:48 23 浏览 0 评论
镜像定制内容:
- 定制镜像内容
- 基于官方镜像minimal版定制
- 禁用自带的 nouveau nvidia驱动(Linux安装显卡驱动免重启即时生效),为自动化部署脚本提供便携.
检查方式:
[root@localhost ~]# cat /etc/modprobe.d/blacklist.conf
blacklist nouveau
[root@localhost ~]#
- 内置5.5.7-1.el7.elrepo.x86_64 内核,去除官方默认自带3.10.0-957.el7.x86_64内核.
- 内置ntfs-3g插件(支持直接插ntfs格式的u盘拷贝)
- 以内置以下常用命令/开发调试工具包
telnet,lrzsz,htop,iftop,git,vim,tree,wget,gcc-c++,openssl-devel,expect,rpm,ntpdate,nmap-ncat,net-tools,unzip,yum-utils,device-mapper-persistent-data,bash-completion,bash-completion-extras,libcurl,openssl,ncurses-devel,gcc,kernel-ml,kernel-ml-devel,kernel-ml-headers,kernel-ml-tools-libs,kernel-ml-tool,kernel-ml-tools-libs-devel
优化Centos系统
- 更换yum源默认为 阿里源,增加docker-ce国内源CentOS-Base.repo docker-ce.repo epel.repo
- /etc/rc.local默认给执行权限
- 优化sshd----------->>> UseDNS no
- 关闭firewalld防火墙
- 关闭Selinux开机自启
- 默认开启命令行tab键补齐功能
- 内核参数优化如下
准备环境
yum install createrepo genisoimage -y
第一:准备完整的安装镜像CentOS-7,挂载到虚拟机,并同时创建一个用于编辑存放的目录centos7
mkdir -p /home/centos7
mount /dev/cdrom /mnt
cd /mnt && ls -l
第二:复制光盘文件到可编辑目录centos7
cp -rfv /mnt/* /home/centos7
第三:编辑bios引导文件
[root@localhost ~]# cat /home/centos7/isolinux/isolinux.cfg
default vesamenu.c32
timeout 600
display boot.msg
# Clear the screen when exiting the menu, instead of leaving the menu displayed.
# For vesamenu, this means the graphical background is still displayed without
# the menu itself for as long as the screen remains in graphics mode.
menu clear
menu background splash.png
menu title CentOS 7
menu vshift 8
menu rows 18
menu margin 8
#menu hidden
menu helpmsgrow 15
menu tabmsgrow 13
# Border Area
menu color border * #00000000 #00000000 none
# Selected item
menu color sel 0 #ffffffff #00000000 none
# Title bar
menu color title 0 #ff7ba3d0 #00000000 none
# Press [Tab] message
menu color tabmsg 0 #ff3a6496 #00000000 none
# Unselected menu item
menu color unsel 0 #84b8ffff #00000000 none
# Selected hotkey
menu color hotsel 0 #84b8ffff #00000000 none
# Unselected hotkey
menu color hotkey 0 #ffffffff #00000000 none
# Help text
menu color help 0 #ffffffff #00000000 none
# A scrollbar of some type? Not sure.
menu color scrollbar 0 #ffffffff #ff355594 none
# Timeout msg
menu color timeout 0 #ffffffff #00000000 none
menu color timeout_msg 0 #ffffffff #00000000 none
# Command prompt text
menu color cmdmark 0 #84b8ffff #00000000 none
menu color cmdline 0 #ffffffff #00000000 none
# Do not display the actual menu unless the user presses a key. All that is displayed is a timeout message.
menu tabmsg Press Tab for full configuration options on menu items.
menu separator # insert an empty line
menu separator # insert an empty line
label linux
menu label ^Install CentOS 7.7 ( Kernel-5.5.7-1)
kernel vmlinuz
append initrd=initrd.img inst.stage2=hd:LABEL=CentOS7 quiet
label check
menu label Test this ^media & install CentOS 7
menu default
kernel vmlinuz
append initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 rd.live.check quiet
menu separator # insert an empty line
# utilities submenu
menu begin ^Troubleshooting
menu title Troubleshooting
label vesa
menu indent count 5
menu label Install CentOS 7 in ^basic graphics mode
text help
Try this option out if you're having trouble installing
CentOS 7.
endtext
kernel vmlinuz
append initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 xdriver=vesa nomodeset quiet
label rescue
menu indent count 5
menu label ^Rescue a CentOS system
text help
If the system will not boot, this lets you access files
and edit config files to try to get it booting again.
endtext
kernel vmlinuz
append initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 rescue quiet
label memtest
menu label Run a ^memory test
text help
If your system is having issues, a problem with your
system's memory may be the cause. Use this utility to
see if the memory is working correctly.
endtext
kernel memtest
menu separator # insert an empty line
label local
menu label Boot from ^local drive
localboot 0xffff
menu separator # insert an empty line
menu separator # insert an empty line
label returntomain
menu label Return to ^main menu
menu exit
menu end
[root@localhost ~]#
第四:编辑EFI引导文件/home/centos7/EFI/BOOT/grub.cfg
[root@localhost ~]# cat /home/centos7/EFI/BOOT/grub.cfg
set default="1"
function load_video {
insmod efi_gop
insmod efi_uga
insmod video_bochs
insmod video_cirrus
insmod all_video
}
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set timeout=60
### END /etc/grub.d/00_header ###
search --no-floppy --set=root -l 'CentOS 7 x86_64'
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Install CentOS 7.7( Kernel-5.5.7-1)' --class fedora --class gnu-linux --class gnu --class os {
linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=CentOS7 quiet
initrdefi /images/pxeboot/initrd.img
}
}
[root@localhost ~]#
第五:编辑/home/centos7/comps.xml文件增加自定义软件/5.5内核
[root@localhost ~]# cat /home/centos7/comps.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE comps PUBLIC "-//CentOS//DTD Comps info//EN" "comps.dtd">
<comps>
<group>
<id>core</id>
<name>Core</name>
<name xml:lang="af">Kern</name>
<name xml:lang="af_ZA">Kern</name>
<name xml:lang="am">????? ??</name>
<name xml:lang="ar">?????</name>
<name xml:lang="as">??????</name>
<name xml:lang="bal">????</name>
<name xml:lang="be">Падмурак</name>
<name xml:lang="bg">Основа</name>
<name xml:lang="bn">???</name>
<name xml:lang="bn_IN">???</name>
<name xml:lang="bs">Jezgra</name>
<name xml:lang="ca">Nucli</name>
<name xml:lang="cs">úplny základ</name>
<name xml:lang="cs_CZ">úplny základ</name>
<name xml:lang="cy">Craidd</name>
<name xml:lang="da">Grundl?ggende</name>
<name xml:lang="de">Kern</name>
<name xml:lang="de_CH">Kern</name>
<name xml:lang="el">Πυρ?να?</name>
<name xml:lang="en_GB">Core</name>
<name xml:lang="es">Núcleo</name>
<name xml:lang="es_ES">Núcleo</name>
<name xml:lang="et">Tuum</name>
<name xml:lang="fa">???</name>
<name xml:lang="fa_IR">???</name>
<name xml:lang="fi">Keskeiset</name>
<name xml:lang="fr">Core</name>
<name xml:lang="gl">Núcleo</name>
<name xml:lang="gu">???</name>
<name xml:lang="he">????</name>
<name xml:lang="hi">???</name>
<name xml:lang="hr">Jezgra</name>
<name xml:lang="hr_HR">Jezgra</name>
<name xml:lang="hu">Mag</name>
<name xml:lang="hy">????</name>
<name xml:lang="ia">Nucleo</name>
<name xml:lang="id">Inti</name>
<name xml:lang="ilo">Bugas</name>
<name xml:lang="is">Lágmarkskerfi</name>
<name xml:lang="it">Principale</name>
<name xml:lang="it_IT">Principale</name>
<name xml:lang="ja">コア</name>
<name xml:lang="ja_JP">コア</name>
<name xml:lang="ka">??????</name>
<name xml:lang="kn">????????</name>
<name xml:lang="ko">??</name>
<name xml:lang="lv">Pamatsistēma</name>
<name xml:lang="mai">???</name>
<name xml:lang="mk">Основни</name>
<name xml:lang="ml">?????</name>
<name xml:lang="mr">???</name>
<name xml:lang="ms">Teras</name>
<name xml:lang="ms_MY">Teras</name>
<name xml:lang="nb">Kjerne</name>
<name xml:lang="ne">???</name>
<name xml:lang="nl">Kern</name>
<name xml:lang="no">Kjerne</name>
<name xml:lang="nso">Bogare</name>
<name xml:lang="or">??????</name>
<name xml:lang="pa">???</name>
<name xml:lang="pl">Rdzeń</name>
<name xml:lang="pt">Núcleo</name>
<name xml:lang="pt_BR">Núcleo</name>
<name xml:lang="ro">Nucleu</name>
<name xml:lang="ru">Основа</name>
<name xml:lang="ru_RU">Основа</name>
<name xml:lang="si">?????????</name>
<name xml:lang="sk">Jadro</name>
<name xml:lang="sl">Jedro</name>
<name xml:lang="sq">B?rthama</name>
<name xml:lang="sr">Срж</name>
<name xml:lang="sr@latin">Sr?</name>
<name xml:lang="sr@Latn">Sr?</name>
<name xml:lang="sv">Grund</name>
<name xml:lang="ta">????</name>
<name xml:lang="ta_IN">????</name>
<name xml:lang="te">?????????</name>
<name xml:lang="tg">Система</name>
<name xml:lang="th">???????</name>
<name xml:lang="tr">?ekirdek</name>
<name xml:lang="uk">Основа</name>
<name xml:lang="uk_UA">Основа</name>
<name xml:lang="ur">????</name>
<name xml:lang="vi">L?i</name>
<name xml:lang="zh">核心</name>
<name xml:lang="zh_CN">核心</name>
<name xml:lang="zh_TW">核心</name>
<name xml:lang="zu">Okuyikhona</name>
<description>Smallest possible installation.</description>
<description xml:lang="as">??????? ???????</description>
<description xml:lang="bn">??????? ??????????</description>
<description xml:lang="bn_IN">??????? ??????????</description>
<description xml:lang="cs">Nejmen?í mo?ná instalace.</description>
<description xml:lang="cs_CZ">Nejmen?í mo?ná instalace.</description>
<description xml:lang="de">Kleinstm?gliche Installation.</description>
<description xml:lang="de_CH">Kleinstm?gliche Installation.</description>
<description xml:lang="es">La instalación más peque?a posible.</description>
<description xml:lang="es_ES">La instalación más peque?a posible.</description>
<description xml:lang="fr">Plus petite installation possible.</description>
<description xml:lang="gu">??????? ???? ???? ??????.</description>
<description xml:lang="hi">????? ??????? ????????.</description>
<description xml:lang="ia">Le minime possibile installation.</description>
<description xml:lang="it">Minima installazione possibile.</description>
<description xml:lang="it_IT">Minima installazione possibile.</description>
<description xml:lang="ja">最小限のインストール</description>
<description xml:lang="ja_JP">最小限のインストール</description>
<description xml:lang="kn">???????????? ??????????.</description>
<description xml:lang="ko">??? ?? ??</description>
<description xml:lang="ml">???????? ??????? ????? ???????????????.</description>
<description xml:lang="mr">??????? ?????? ???? ???????????.</description>
<description xml:lang="or">????????? ???????? ????????</description>
<description xml:lang="pa">????-??? ???? ??????????</description>
<description xml:lang="pl">Najmniejsza mo?liwa instalacja.</description>
<description xml:lang="pt_BR">Menor instala??o possível</description>
<description xml:lang="ru">Минимально возможная установка</description>
<description xml:lang="ru_RU">Минимально возможная установка</description>
<description xml:lang="sv">Minsta m?jliga installation</description>
<description xml:lang="ta">????? ????? ?????????????????? ???????.</description>
<description xml:lang="ta_IN">????? ????? ?????????????????? ???????.</description>
<description xml:lang="te">???????? ???????? ????????.</description>
<description xml:lang="uk">М?н?мально можливе встановлення.</description>
<description xml:lang="uk_UA">М?н?мально можливе встановлення.</description>
<description xml:lang="zh">最小型安裝。</description>
<description xml:lang="zh_CN">最小可能安装。</description>
<description xml:lang="zh_TW">最小型安裝。</description>
<default>false</default>
<uservisible>false</uservisible>
<packagelist>
<packagereq type="mandatory">audit</packagereq>
<packagereq type="mandatory">basesystem</packagereq>
<packagereq type="mandatory">bash</packagereq>
<packagereq type="mandatory">btrfs-progs</packagereq>
<packagereq type="mandatory">coreutils</packagereq>
<packagereq type="mandatory">cronie</packagereq>
<packagereq type="mandatory">curl</packagereq>
<packagereq type="mandatory">dhclient</packagereq>
<packagereq type="mandatory">e2fsprogs</packagereq>
<packagereq type="mandatory">filesystem</packagereq>
<packagereq type="mandatory">firewalld</packagereq>
<packagereq type="mandatory">glibc</packagereq>
<packagereq type="mandatory">hostname</packagereq>
<packagereq type="mandatory">initscripts</packagereq>
<packagereq type="mandatory">iproute</packagereq>
<packagereq type="mandatory">iprutils</packagereq>
<packagereq type="mandatory">iptables</packagereq>
<packagereq type="mandatory">iputils</packagereq>
<packagereq type="mandatory">irqbalance</packagereq>
<packagereq type="mandatory">kbd</packagereq>
<packagereq type="mandatory">kexec-tools</packagereq>
<packagereq type="mandatory">less</packagereq>
<packagereq type="mandatory">man-db</packagereq>
<packagereq type="mandatory">ncurses</packagereq>
<packagereq type="mandatory">openssh-clients</packagereq>
<packagereq type="mandatory">openssh-server</packagereq>
<packagereq type="mandatory">parted</packagereq>
<packagereq type="mandatory">passwd</packagereq>
<packagereq type="mandatory">plymouth</packagereq>
<packagereq type="mandatory">policycoreutils</packagereq>
<packagereq type="mandatory">procps-ng</packagereq>
<packagereq type="mandatory">rootfiles</packagereq>
<packagereq type="mandatory">rpm</packagereq>
<packagereq type="mandatory">rsyslog</packagereq>
<packagereq type="mandatory">selinux-policy-targeted</packagereq>
<packagereq type="mandatory">setup</packagereq>
<packagereq type="mandatory">shadow-utils</packagereq>
<packagereq type="mandatory">sudo</packagereq>
<packagereq type="mandatory">systemd</packagereq>
<packagereq type="mandatory">tar</packagereq>
<packagereq type="mandatory">tuned</packagereq>
<packagereq type="mandatory">util-linux</packagereq>
<packagereq type="mandatory">vim-minimal</packagereq>
<packagereq type="mandatory">xfsprogs</packagereq>
<packagereq type="mandatory">yum</packagereq>
<packagereq type="default">aic94xx-firmware</packagereq>
<packagereq type="default">alsa-firmware</packagereq>
<packagereq type="default">biosdevname</packagereq>
<packagereq type="default">dracut-config-rescue</packagereq>
<packagereq type="default">ivtv-firmware</packagereq>
<packagereq type="default">iwl100-firmware</packagereq>
<packagereq type="default">iwl1000-firmware</packagereq>
<packagereq type="default">iwl105-firmware</packagereq>
<packagereq type="default">iwl135-firmware</packagereq>
<packagereq type="default">iwl2000-firmware</packagereq>
<packagereq type="default">iwl2030-firmware</packagereq>
<packagereq type="default">iwl3160-firmware</packagereq>
<packagereq type="default">iwl3945-firmware</packagereq>
<packagereq type="default">iwl4965-firmware</packagereq>
<packagereq type="default">iwl5000-firmware</packagereq>
<packagereq type="default">iwl5150-firmware</packagereq>
<packagereq type="default">iwl6000-firmware</packagereq>
<packagereq type="default">iwl6000g2a-firmware</packagereq>
<packagereq type="default">kernel-tools</packagereq>
<packagereq type="default">iwl6000g2b-firmware</packagereq>
<packagereq type="default">iwl6050-firmware</packagereq>
<packagereq type="default">iwl7260-firmware</packagereq>
<packagereq type="default">iwl7265-firmware</packagereq>
<packagereq type="default">libsysfs</packagereq>
<packagereq type="default">linux-firmware</packagereq>
<packagereq type="default">lshw</packagereq>
<packagereq type="default">microcode_ctl</packagereq>
<packagereq type="default">NetworkManager</packagereq>
<packagereq type="default">NetworkManager-team</packagereq>
<packagereq type="default">NetworkManager-tui</packagereq>
<packagereq type="default">postfix</packagereq>
<packagereq type="default">sg3_utils</packagereq>
<packagereq type="default">sg3_utils-libs</packagereq>
<packagereq type="optional">dracut-config-generic</packagereq>
<packagereq type="optional">dracut-fips</packagereq>
<packagereq type="optional">dracut-fips-aesni</packagereq>
<packagereq type="optional">dracut-network</packagereq>
<packagereq type="optional">initial-setup</packagereq>
<packagereq type="optional">openssh-keycat</packagereq>
<packagereq type="optional">rdma-core</packagereq>
<packagereq type="optional">selinux-policy-mls</packagereq>
<packagereq type="optional">tboot</packagereq>
<packagereq type="mandatory">lrzsz</packagereq>
<packagereq type="mandatory">tree</packagereq>
<packagereq type="mandatory">wget</packagereq>
<packagereq type="mandatory">gcc-c++</packagereq>
<packagereq type="mandatory">openssl-devel</packagereq>
<packagereq type="mandatory">expect</packagereq>
<packagereq type="mandatory">rpm</packagereq>
<packagereq type="mandatory">ntpdate</packagereq>
<packagereq type="mandatory">nmap-ncat</packagereq>
<packagereq type="mandatory">net-tools</packagereq>
<packagereq type="mandatory">ntfs-3g</packagereq>
<packagereq type="mandatory">telnet</packagereq>
<packagereq type="mandatory">ntfs-3g</packagereq>
<packagereq type="mandatory">iotop</packagereq>
<packagereq type="mandatory">yum-utils</packagereq>
<packagereq type="mandatory">device-mapper-persistent-data</packagereq>
<packagereq type="mandatory">bash-completion</packagereq>
<packagereq type="mandatory">bash-completion-extras</packagereq>
<packagereq type="mandatory">kernel-ml-devel</packagereq>
<packagereq type="mandatory">kernel-ml</packagereq>
<packagereq type="mandatory">kernel-ml-headers</packagereq>
<packagereq type="mandatory">libcurl</packagereq>
<packagereq type="mandatory">openssl</packagereq>
<packagereq type="mandatory">unzip</packagereq>
<packagereq type="mandatory">ncurses-devel</packagereq>
<packagereq type="mandatory">htop</packagereq>
<packagereq type="mandatory">pbzip2</packagereq>
<packagereq type="mandatory">hdparm</packagereq>
<packagereq type="mandatory">dmidecode</packagereq>
<packagereq type="mandatory">pciutils</packagereq>
<packagereq type="mandatory">iftop</packagereq>
<packagereq type="mandatory">git</packagereq>
<packagereq type="mandatory">centos7init</packagereq>
</packagelist>
</group>
<environment>
<id>minimal</id>
<name>Minimal Install</name>
<name xml:lang="as">??????? ??????</name>
<name xml:lang="cs">Minimální instalace</name>
<name xml:lang="cs_CZ">Minimální instalace</name>
<name xml:lang="de">Minimale Installation</name>
<name xml:lang="de_CH">Minimale Installation</name>
<name xml:lang="es">Instalación mínima</name>
<name xml:lang="es_ES">Instalación mínima</name>
<name xml:lang="fr">Installation minimale</name>
<name xml:lang="gu">??????? ??????</name>
<name xml:lang="hi">??????? ????????</name>
<name xml:lang="it">Installazione minima</name>
<name xml:lang="it_IT">Installazione minima</name>
<name xml:lang="ja">最小限のインストール</name>
<name xml:lang="ja_JP">最小限のインストール</name>
<name xml:lang="kn">?????? ??????????</name>
<name xml:lang="ko">?? ??</name>
<name xml:lang="ml">??????? ?????? ?????????????</name>
<name xml:lang="mr">????? ???????</name>
<name xml:lang="or">????????? ??????</name>
<name xml:lang="pa">??? ??? ??? ??????</name>
<name xml:lang="pl">Minimalna instalacja</name>
<name xml:lang="pt">Instala??es Mínimas</name>
<name xml:lang="pt_BR">Instala??es Mínimas</name>
<name xml:lang="ru">Минимальная установка</name>
<name xml:lang="ru_RU">Минимальная установка</name>
<name xml:lang="ta">??????????? ???????</name>
<name xml:lang="ta_IN">??????????? ???????</name>
<name xml:lang="te">?????? ????????</name>
<name xml:lang="uk">М?н?мальна система</name>
<name xml:lang="uk_UA">М?н?мальна система</name>
<name xml:lang="zh">最小型安裝</name>
<name xml:lang="zh_CN">最小安装</name>
<name xml:lang="zh_TW">最小型安裝</name>
<description>Basic functionality.</description>
<description xml:lang="as">???? ?????????????</description>
<description xml:lang="cs">Základní funkcionalita.</description>
<description xml:lang="cs_CZ">Základní funkcionalita.</description>
<description xml:lang="de">Grundlegende Funktionalit?t.</description>
<description xml:lang="de_CH">Grundlegende Funktionalit?t.</description>
<description xml:lang="es">Funcionalidad básica.</description>
<description xml:lang="es_ES">Funcionalidad básica.</description>
<description xml:lang="fr">Fonctionnalité de base.</description>
<description xml:lang="gu">?????? ?????.</description>
<description xml:lang="hi">????? ???????????????.</description>
<description xml:lang="it">Funzione di base.</description>
<description xml:lang="it_IT">Funzione di base.</description>
<description xml:lang="ja">基本的な機能です。</description>
<description xml:lang="ja_JP">基本的な機能です。</description>
<description xml:lang="kn">?????? ???????????.</description>
<description xml:lang="ko">???? ?????.</description>
<description xml:lang="ml">???????? ????????????????.</description>
<description xml:lang="mr">??? ???????????.</description>
<description xml:lang="or">?????? ??????????????</description>
<description xml:lang="pa">?????? ??????????</description>
<description xml:lang="pl">Podstawowa funkcjonalno??.</description>
<description xml:lang="pt">Fun??o básica</description>
<description xml:lang="pt_BR">Fun??o básica</description>
<description xml:lang="ru">Базовая функциональность.</description>
<description xml:lang="ru_RU">Базовая функциональность.</description>
<description xml:lang="ta">???????? ?????????.</description>
<description xml:lang="ta_IN">???????? ?????????.</description>
<description xml:lang="te">???????? ???????????.</description>
<description xml:lang="uk">Основн? можливост?.</description>
<description xml:lang="uk_UA">Основн? можливост?.</description>
<description xml:lang="zh">基本功能。</description>
<description xml:lang="zh_CN">基本功能。</description>
<description xml:lang="zh_TW">基本功能。</description>
<display_order>5</display_order>
<grouplist>
<groupid>core</groupid>
<groupid>core</groupid>
</grouplist>
<optionlist>
<groupid>debugging</groupid>
<groupid>debugging</groupid>
</optionlist>
</environment>
<environment>
</comps>
[root@localhost ~]#
第六:把准备好的 rpm包拷贝到/home/centos7/Packages/
提取rpm包不下载用以下命令
yum install --downloadonly wget
find /var/cache/ -name "*.rpm" -exec \cp -av {} /root/kernel-5.5/ \;
\cp -rav /root/kernel-5.5/* /home/centos7/Packages/
[root@localhost ~]# ls /root/kernel-5.5/*
/root/kernel-5.5/kernel-ml-5.5.7-1.el7.elrepo.x86_64.rpm
/root/kernel-5.5/kernel-ml-devel-5.5.7-1.el7.elrepo.x86_64.rpm
/root/kernel-5.5/kernel-ml-doc-5.5.7-1.el7.elrepo.noarch.rpm
/root/kernel-5.5/kernel-ml-headers-5.5.7-1.el7.elrepo.x86_64.rpm
/root/kernel-5.5/kernel-ml-tools-5.5.7-1.el7.elrepo.x86_64.rpm
/root/kernel-5.5/kernel-ml-tools-libs-5.5.7-1.el7.elrepo.x86_64.rpm
/root/kernel-5.5/kernel-ml-tools-libs-devel-5.5.7-1.el7.elrepo.x86_64.rpm
/root/kernel-5.5/perf-5.5.7-1.el7.elrepo.x86_64.rpm
/root/kernel-5.5/perl-5.16.3-294.el7_6.x86_64.rpm
/root/kernel-5.5/perl-Carp-1.26-244.el7.noarch.rpm
/root/kernel-5.5/perl-constant-1.27-2.el7.noarch.rpm
/root/kernel-5.5/perl-Data-Dumper-2.145-3.el7.x86_64.rpm
/root/kernel-5.5/perl-Encode-2.51-7.el7.x86_64.rpm
/root/kernel-5.5/perl-Exporter-5.68-3.el7.noarch.rpm
/root/kernel-5.5/perl-File-Path-2.09-2.el7.noarch.rpm
/root/kernel-5.5/perl-File-Temp-0.23.01-3.el7.noarch.rpm
/root/kernel-5.5/perl-Filter-1.49-3.el7.x86_64.rpm
/root/kernel-5.5/perl-Getopt-Long-2.40-3.el7.noarch.rpm
/root/kernel-5.5/perl-HTTP-Tiny-0.033-3.el7.noarch.rpm
/root/kernel-5.5/perl-libs-5.16.3-294.el7_6.x86_64.rpm
/root/kernel-5.5/perl-macros-5.16.3-294.el7_6.x86_64.rpm
/root/kernel-5.5/perl-parent-0.225-244.el7.noarch.rpm
/root/kernel-5.5/perl-PathTools-3.40-5.el7.x86_64.rpm
/root/kernel-5.5/perl-Pod-Escapes-1.04-294.el7_6.noarch.rpm
/root/kernel-5.5/perl-podlators-2.5.1-3.el7.noarch.rpm
/root/kernel-5.5/perl-Pod-Perldoc-3.20-4.el7.noarch.rpm
/root/kernel-5.5/perl-Pod-Simple-3.28-4.el7.noarch.rpm
/root/kernel-5.5/perl-Pod-Usage-1.63-3.el7.noarch.rpm
/root/kernel-5.5/perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm
/root/kernel-5.5/perl-Socket-2.010-4.el7.x86_64.rpm
/root/kernel-5.5/perl-Storable-2.45-3.el7.x86_64.rpm
/root/kernel-5.5/perl-Text-ParseWords-3.29-4.el7.noarch.rpm
/root/kernel-5.5/perl-threads-1.87-4.el7.x86_64.rpm
/root/kernel-5.5/perl-threads-shared-1.43-6.el7.x86_64.rpm
/root/kernel-5.5/perl-Time-HiRes-1.9725-3.el7.x86_64.rpm
/root/kernel-5.5/perl-Time-Local-1.2300-2.el7.noarch.rpm
/root/kernel-5.5/python-perf-5.5.7-1.el7.elrepo.x86_64.rpm
[root@localhost ~]#
第六:生成iso镜像,在当前目录下
cd /home/centos7/
createrepo -g comps.xml ./
genisoimage -joliet-long -V CentOS7 -o CentOS-7.7-kernel-5.5.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -cache-inodes -T -eltorito-alt-boot -e images/efiboot.img -no-emul-boot /home/centos7
效果
相关推荐
- Linux/Unix 系统中非常常用的命令
-
Linux/Unix系统中非常常用的命令,它们是进行文件操作、文本处理、权限管理等任务的基础。下面是对这些命令的简要说明:**文件操作类:*****`ls`(list):**列出目录内容,显...
- 教你如何在Linux中删除分区(CLI篇)
-
文接上篇,继续以Ubuntu系统为例。删除分区前,急得重要数据备份!备份!备份用命令操作分区,用的最多的莫过于fdisk了,几乎所有的Linux发行版都默认带有fdisk。首先要知道的是,你想删除的分...
- 敲完就让你提桶跑路的Linux命令(敲完就让你提桶跑路的linux命令是什么)
-
不谨慎可能就会让你提桶的Linux命令!!!删除文件rm-rf该命令是删除文件或文件夹等最快的方式之一。删除后的内容很难恢复,如果删除系统文件可能会导致系统崩坏。>rm-rf/#强制...
- Log文件可以删除吗(taxukeylog文件可以删除吗)
-
Log文件(日志文件)是否可以删除取决于具体场景和文件类型。以下是详细分析和建议:一、哪些Log文件可以删除?非关键应用日志用户级应用日志:如浏览器缓存日志、游戏临时日志等,通常不影响系统运行,可定期...
- Linux 删除空目录(linux直接删除目录)
-
rmdir命令用来删除空目录。当目录不再被使用时,或者磁盘空间已到达使用限定值,就需要删除失去使用价值的目录。利用rmdir命令可以从一个目录中删除一个或多个空的子目录。该命令从一个目录中删除一个或...
- 在 Windows 11 或 10 上删除、创建和格式化分区
-
在Windows11或10上删除、创建和格式化分区假设您的现有电脑使用的是传统硬盘,但现在您想再添加一个硬盘或SSD。当然,后者将用于启动操作系统,而前者将作为纯数据存储。在成功将操作系统...
- 如何使用 Apt Clean 命令清除 APT 缓存?
-
APT(AdvancedPackageTool)是Debian系Linux发行版的包管理工具,用于处理软件包的安装、升级和依赖管理。在使用apt命令(如aptinstall、apt...
- Linux 磁盘空间不够用?5 招快速清理文件,释放 10GB 空间不是梦!
-
刚收到服务器警告:磁盘空间不足90%!装软件提示Nospaceleftondevice!连日志都写不进去,系统卡到崩溃?别慌!今天教你5个超实用的磁盘清理大招,从临时文件到无用软件一键搞定...
- Linux清空日志方法(linux怎么清理日志)
-
方法1:使用>重定向>/path/to/logfile或(需要权限时):sudosh-c'>/var/log/logfile'方法2:使用trun...
- 如何在Eclipse中搭建Zabbix源码的调试和开发环境
-
Zabbix是一款非常优秀的企业级软件,被设计用于对数万台服务器、虚拟机和网络设备的数百万个监控项进行实时监控。Zabbix是开放源码和免费的,这就意味着当出现bug时,我们可以很方便地通过调试源码来...
- Linux操作系统之常用命令(linux操作系统之常用命令有哪些)
-
Linux操作系统一、常用命令1.系统(1)系统信息arch显示机器的处理器架构uname-m显示机器的处理器架构uname-r显示正在使用的内核版本dmidecode-q显示硬件系...
- 理解linux内核的vmlinuz和initrd(linux内核原理及分析)
-
Originaladdress:http://www.chenjunlu.com/2010/11/understanding-of-vmlinuz-initrd-and-system-map/1....
- Linux纯干货知识总结|面试专用(linux面试宝典)
-
学习Linux的重要性相信不用我多说大家也明白,以下是小编总结的常用Linux基础知识以及面试常问的Linux命令,希望能帮助大家更规范地理解和使用~绝对路径和相对路径绝对路径以正斜杠开始完整的文件的...
- Linux基础知识之启动流程分析(简述linux启动流程)
-
Linux系统启动原理:1.poweron开机。2.开机自检:电脑开机后首先加载BIOS(BasicInput/OutputSystem基本输入输出系统)。BIOS程序首先检查计算机能否满足运...
- Java程序员必备——Linux的面试常见问题及面试题!你知道多少?
-
一.常用命令1.编辑相关①.awkNF:字段总数NR:第几行数据FS:分隔字符②.sed-n-i直接修改4a:在第四行后添加4i:在第四行前插入1,5csting:用sting替换1到5行...
你 发表评论:
欢迎- 一周热门
- 最近发表
- 标签列表
-
- linux 查询端口号 (58)
- docker映射容器目录到宿主机 (66)
- 杀端口 (60)
- yum更换阿里源 (62)
- internet explorer 增强的安全配置已启用 (65)
- linux自动挂载 (56)
- 禁用selinux (55)
- sysv-rc-conf (69)
- ubuntu防火墙状态查看 (64)
- windows server 2022激活密钥 (56)
- 无法与服务器建立安全连接是什么意思 (74)
- 443/80端口被占用怎么解决 (56)
- ping无法访问目标主机怎么解决 (58)
- fdatasync (59)
- 405 not allowed (56)
- 免备案虚拟主机zxhost (55)
- linux根据pid查看进程 (60)
- dhcp工具 (62)
- mysql 1045 (57)
- 宝塔远程工具 (56)
- ssh服务器拒绝了密码 请再试一次 (56)
- ubuntu卸载docker (56)
- linux查看nginx状态 (63)
- tomcat 乱码 (76)
- 2008r2激活序列号 (65)