终于搞懂Livecd的制作了,从此可以任意定制livecd工具了

制作Livecd步骤

1、写ks文件

例如:

lang en_GB.UTF-8
keyboard us
timezone Asia/Shanghai --isUtc

#selinux --enforcing
selinux --disabled

#firewall --enabled --service=cockpit
firewall --disabled

#xconfig --startxonboot
services --enabled=sshd

# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
# Disk partitioning information
part / --size 8192 --fstype ext4
part /boot/efi --fstype="ext4" --size=200
part /boot --fstype="ext4" --size=1024
part swap --fstype="swap" --size=2048
part /run/initramfs/live --fstype="ext4" --grow --size=1


# Root password
auth --useshadow --enablemd5
rootpw --plaintext ROOTPassWorD
repo --name=base --baseurl=http://mirrors.ustc.edu.cn/centos/7.9.2009/os/x86_64/
repo --name=updates --baseurl=http://mirrors.ustc.edu.cn/centos/7/updates/x86_64/
repo --name=extras 
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值