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

BUG of kickstart config file of Ubuntu

利用RHEL的kickstart安装ubuntu,通过已有的一台ubuntu的kickstart工具生成了cfg文件,结果中看不中用,clearpart不起作用,无法完全的无人值守安装,因为无法自动删除raid和lvm,所以安装的时候只好把设定好的raid及分区部分注释掉,然后通过文本安装页面进行配置。
另外openssh-server也木有安装好,只能通过console手工安装。

cat ubuntu_ks.cfg
#Generated by Kickstart Configurator
#platform=AMD64 or Intel EM64T

#System language
lang en_US
#Language modules to install
langsupport en_US
#System keyboard
keyboard us
#System mouse
mouse
#System timezone
timezone –utc America/New_York
#Root password
rootpw –iscrypted $1$dIx6XYId$Grao2hlnjSQCXCbmdShWW1
#Initial user
user fisher –fullname “2hei” –iscrypted –password $1$yFK9gVs1$L9RHTs7B6oClIC4fonT.s/
#Reboot after installation
reboot
#Use text mode install
#text
graphical
#Install OS instead of upgrade
install
#Use Web installation
url –url http://2hei.net/install/ubuntu/9.10/
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart –all –initlabel
bootloader –location=mbr

#Disk partitioning information
#part raid.11 –size 20480 –asprimary –ondisk sda
#part raid.12 –size 100 –asprimary –ondisk sda
#part raid.13 –size 8192 –ondisk sda
#part raid.14 –size 1 –grow –ondisk sda
#part raid.21 –size 20480 –asprimary –ondisk sdb
#part raid.22 –size 100 –asprimary –ondisk sdb
#part raid.23 –size 8192 –ondisk sdb
#part raid.24 –size 1 –grow –ondisk sdb
#raid / –level=1 –device=md1 raid.11 raid.21
#raid /boot –level=1 –device=md0 raid.12 raid.22
#raid swap –level=1 –device=md2 raid.13 raid.23
#raid  –level=1 –device=md3 raid.14 raid.24
#System authorization infomation
auth  –useshadow  –enablemd5
#Network information
network –bootproto=static –ip=192.168.100.2 –netmask=255.255.255.0 –gateway=192.168.100.1 –nameserver=192.168.100.1 –device=eth0
#Firewall configuration
firewall –disabled –http –ssh
#X Window System configuration information
xconfig –depth=32 –resolution=800×600 –defaultdesktop=GNOME –startxonboot
%packages
@Ubuntu-desktop
openssh-server

本文固定链接: http://2hei.net/bug_of_kickstart_config_file_of_ubuntu.html | 2hei's site

该日志由 2hei 于2011年11月24日发表在 OpenSource 分类下,
原创文章转载请注明: BUG of kickstart config file of Ubuntu | 2hei's site
关键字: ,

报歉!评论已关闭.