天天看点

自制linux 安装光盘,Linux无人值守安装光盘制作

Linux(rhel5.5)无人值守安装光盘制作

一、生产自动安装kickstart配置文件(可用kickstart配置工具,system-config-kickstart配置)

[[email protected] ~]#vim /root/ks.cfg

#platform=x86, AMD64, 或 Intel EM64T

# System authorization information

auth  --useshadow  --enablemd5

key --skip                            #跳过安装sn的输入,必须有

# System bootloader configuration

bootloader --location=mbr

# Clear the Master Boot Record

zerombr

# Partition clearing information

clearpart --all --initlabel

# Use graphical install

#graphical

# Use text mode install            #字符界面安装

text

# Firewall configuration

firewall --disabled

# Run the Setup Agent on first boot

firstboot --disable

# System keyboard

keyboard us

# System language

lang zh_CN                     #系统默认语言设置

# Installation logging level

logging --level=info

# Use CDROM installation media

cdrom                         #默认安装介质

# Network information

network --bootproto=static --device=eth0 --gateway=192.168.32.254 --ip=192.168.32.30 --netmask=255.255.255.0 --onboot=on    #网络设置

# Reboot after installation

reboot --eject    #安装后弹出cd重新系统,必须弹出cd,否则重启时会再次自动安装系统

#Root password

rootpw --iscrypted $1$m3qF5xHj$nPMaPd2vTvl6Bnm5Do.un.

# SELinux configuration

selinux --disabled

# System timezone

timezone  Asia/Chongqing

# Install OS instead of upgrade

install

# X Window System configuration information

xconfig  --defaultdesktop=GNOME --depth=16 --resolution=1024x768 --startxonboot

# Disk partitioning information        #硬盘分区设置

part /boot --bytes-per-inode=4096 --fstype="ext3" --ondisk=sda --size=256

part swap --bytes-per-inode=4096 --fstype="swap" --ondisk=sda --size=8192

#part / --bytes-per-inode=4096 --fstype="ext3" --grow --ondisk=sda --size=51200

#LVM install                #逻辑卷创建配置,必须严格按照物理卷、卷组、逻辑卷顺序创建

part pv.01 --ondisk=sda --size 51200

volgroup vg00 pv.01

logvol / --vgname=vg00 --size=1 --grow --name=lv00

#Software packages install   #软件安装包选择

%packages

@base

@gnome-desktop

@development-libs

@base-x

@admin-tools

@legacy-software-development

@development-tools

@chinese-support

@server-cfg

@legacy-network-server

@legacy-software-support

@system-tools

@editors

@text-internet

@graphical-internet

@smb-server

@ftp-server

自制linux 安装光盘,Linux无人值守安装光盘制作

继续阅读