基于 openEuler 22.03 x86版
本文以最小化安装操作系统并安装ansible为例。
yum -y install syslinux rsync
mount openEuler镜像 /media
mkdir /ISO
# 同步/mnt/cdrom/下的文件到/ISO/路径下,除了 Packages 和 repodata 文件夹
/usr/bin/rsync -a --exclude=Packages/ --exclude=repodata/ /media/ /ISO/
mkdir -p /ISO/{Packages,repodata}
rpm -qa >> /root/install.log
awk '{print $0}' /root/install.log |xargs -i cp /media/Packages/{}.rpm /ISO/Packages/
yum install -y --downloadonly --downloaddir=/root/test/ ansible
mv /root/test/* /ISO/Packages/
vim /ISO/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 openEuler 22.03-LTS
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 h