当前位置: 首页 > news >正文

【Linux】U盘安装的cfg引导文件配置

两个导引文件
isolinux.cfg文件

default vesamenu.c32
timeout 600display 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 linelabel linuxmenu label ^Install AISAmenu defaultkernel vmlinuzappend vga=normal initrd=initrd.img inst.ks=hd:LABEL=AISA:/isolinux/ks.cfg inst.stage2=hd:LABEL=AISA ramdisk_size=65536 net.ifnames=0 biosdevname=0  ipv6.disable=1 rdloaddriver=igb nomodeset xdriver=vesa brokenmoudles=ast quietmenu end

下半部分是需要修改的,此外还删除了一些多余的选项,这些选项将会指引到安装何种系统上;
照着这个改吧,反正要注意这个AISA也要改对了

label linuxmenu label ^Install AISAmenu defaultkernel vmlinuzappend vga=normal initrd=initrd.img inst.ks=hd:LABEL=AISA:/isolinux/ks.cfg inst.stage2=hd:LABEL=AISA ramdisk_size=65536 net.ifnames=0 biosdevname=0  ipv6.disable=1 rdloaddriver=igb nomodeset xdriver=vesa brokenmoudles=ast quietmenu end

其中指向了了另一个引导文件是ks.cfg

ks.cfg文件,有删改避免泄漏

# File Managed by Puppetinstall  			# ==系统安装阶段==
lang en_US.UTF-8	# 设置系统语言
keyboard us			# 设置键盘
skipx				# 
text				
reboot
rootpw --iscrypted $1$xxxxxx$eeee	# 设置密码
authconfig --enableshadow --enablemd5	
selinux --disabled
timezone Asia/Shanghai	# 设置时区%packages	# ==需要的安装包==
@core
@base
@mail-server
-dovecot
-system-config-httpd
-system-config-printer-gui
-system-config-nfs
-system-config-samba
-ivtv-firmware
@Development tools
ncurses-devel
ntp
%end			# ==所需的安装包范围结束==%post --nochroot --log=/mnt/sysimage/root/ks-post.log  # ==拷贝文件必须在这个阶段==
#!/bin/sh
server_file=/mnt/install/repo/software/server.zip	# U盘目录一定是这/mnt/install/repo/
if [ -e ${server_file} ]; thencp -f ${server_file} /mnt/sysimage/root/
elseecho "server.zip not exist!"
fimgr_file=/mnt/install/repo/software/mgr.zip
if [ -e ${mgr_file} ]; thencp -f ${mgr_file} /mnt/sysimage/root/
elseecho "mgr.zip not exist!"
fi%end 	# ==拷贝文件阶段结束==%post  # 安装阶段,在这里写安装的那些命令
#!/bin/shsed -i 's/net.ifnames=0/net.ifnames=0 rdloaddriver=igb/g' /etc/default/grub
sed -i 's/crashkernel=auto/crashkernel=128M/g' /etc/default/grub
grub2-mkconfig -o /boot/grub2/grub.cfgsystemctl disable systemd-networkd-wait-online.service
systemctl disable multipathd.serviceif [ -e /root/server.zip ]; thenunzip -d /root/install -PrdN06360Ndr /root/server.ziprm -f /root/server.zip
elseecho "/root/server.zip not exist!"
fiif [ -e /root/mgr.zip ]; thenunzip -d /root/install -PrdN06360Ndr /root/mgr.zip rm -f /root/mgr.zip
fiset -x -v -e
exec < /dev/tty3 > /dev/tty3
chvt 3
(echoexport PATH=/usr/local/bin:$PATHif [ -d /root/install/ ]; thenchmod 777 /root/install/kylin_install.shecho "* * * * * root source ~/.bashrc && nohup /root/install/kylin_install.sh >> /root/install_detail 2>&1 &" > /etc/crontabelseecho "/root/install/ not exist"fi) 2>&1 | tee /root/post-kickstart.log%end
http://www.lryc.cn/news/233973.html

相关文章:

  • Theory behind GAN
  • 《Deep learning for fine-grained image analysis: A survey》阅读笔记
  • 节点导纳矩阵
  • 小米真无线耳机 Air 2s产品蓝牙配对ubuntu20.04 笔记本电脑
  • Python爬虫批量下载图片
  • java入门,从CK导一部分数据到mysql
  • 表白墙/留言墙 —— 中级SpringBoot项目,MyBatis技术栈MySQL数据库开发,练手项目前后端开发(带完整源码) 全方位全步骤手把手教学
  • Stable Diffusion - StableDiffusion WebUI 软件升级与扩展兼容
  • git创建新分支将项目挂载到新分支操作
  • WEB 自动化神器 TestCafe(一)—安装和入门篇
  • asp.net 学校资源信息管理系统VS开发sqlserver数据库web结构c#编程计算机网页项目
  • 【汇编】栈及栈操作的实现
  • 前段-用面向对象的方式开发一个水管小鸟的游戏
  • Java中利用OpenCV进行人脸识别
  • 23111708[含文档+PPT+源码等]计算机毕业设计基于javaweb的旅游网站前台与后台旅景点
  • Windows安装nvm【node.js版本管理工具】
  • 让资产权利归于建设者:Kiosk使过程变得更简单
  • MLP感知机python实现
  • Es 拼音搜索无法高亮
  • java线性并发编程介绍-锁(二)
  • Java JPA详解:从入门到精通
  • 使用Open3D库处理3D模型数据的实践指南
  • 代码随想录算法训练营第五十八天丨 动态规划part18
  • Pytest自动化测试框架介绍
  • 基于SpringBoot+Redis的前后端分离外卖项目-苍穹外卖(五)
  • Oracle 监控的指标有哪些和oracle巡检的内容
  • Uniapp有奖猜歌游戏系统源码 带流量主
  • 【算法与数据结构】前言
  • (六)什么是Vite——热更新时vite、webpack做了什么
  • 贝加莱MQTT功能