- 论坛徽章:
- 0
|
我现在准备用kickstart 来安装rhel 5.4 64bit的系统, 但在kickstart配置文件磁盘分区部分有问题(有3个硬盘,无RAID), 帮忙看看是哪儿问题,
当我自动安装的时候报错如下:
----------
Unable to locate partition sda1 to use for /boot
Press "OK" to reboot your system
----------
Kicksart 配置文件如下:
-----------------
# Kickstart file automatically generated by anaconda.
authconfig --enableshadow --enablemd5
bootloader --location=mbr --driveorder=sda,sdb,sdc --append="rhgb quiet"
clearpart --all --initlabel
graphical
firewall --disabled
key --skip
keyboard us
lang en_US.UTF-8
url --url=http://192.168.100.3/os/5.4/x86_64
network --bootproto=dhcp --device=eth0 --onboot=on
reboot
rootpw --iscrypted $1$EbrAJnUm$CCzNhiCi2f03o6MC1f6/10
selinux --disabled
timezone --utc Asia/Shanghai
install
xconfig --defaultdesktop=GNOME --depth=16 --resolution=1024x768 --startxonboot
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
part /boot --fstype ext3 --onpart sda1
part pv.4 --noformat --onpart sdc1
part pv.3 --noformat --onpart sdb1
part pv.2 --noformat --onpart sda2
volgroup ROOTVG --noformat --useexisting --pesize=32768 pv.2 pv.3 pv.4
logvol /backup --noformat --useexisting --fstype ext3 --name=backuplv --vgname=ROOTVG --size=29984
logvol / --useexisting --fstype ext3 --name=rootlv --vgname=ROOTVG --size=29984
logvol swap --useexisting --fstype swap --name=LogVol01 --vgname=ROOTVG --size=18048
logvol /vm --noformat --useexisting --fstype ext3 --name=vmlv --vgname=ROOTVG --size=1352672
%post
wget http://192.168.100.3/os/5.4/x86_64/rhel-release.repo
mv rhel-release.repo /etc/yum.repos.d/
%packages
@development-libs
@system-tools
@gnome-software-development
@x-software-development
@gnome-desktop
@dialup
@core
@base
@legacy-software-development
@java
@java-development
@legacy-software-support
@base-x
@admin-tools
@development-tools
perl-XML-SAX
tog-pegasus-devel
perl-LDAP
perl-Convert-ASN1
perl-Mozilla-LDAP
perl-XML-NamespaceSupport
tog-pegasus
nmap-frontend
audit
net-snmp-utils
sysstat
mesa-libGLU-devel
kexec-tools
device-mapper-multipath
gtk+
bsh-demo
xorg-x11-utils
xorg-x11-server-Xnest
xorg-x11-server-Xvfb
imake
-sysreport
------------------- |
|