Kickstart ignoring --label option under %pre script
Linux Geek
linux.mether at gmail.com
Mon Jun 1 12:06:12 UTC 2009
Hello,
This is my first query. Please correct me if I din't follow complete
process.
I am trying to setup label for partitions using kickstart under RHEL5. When
I use the --label option outside the %pre option it works fine, however the
same option don't work under %pre section. Below the 2 configs I am using :
1. Outside %pre
clearpart --all --drives=hda
part /boot --fstype ext3 --size=100 --ondisk=hda --label=MYLABEL
2. Under the %pre section :
%pre
(
set $(list-harddrives)
let numdrives=$#/2
disk1=$1
size1=$2
disk2=$3
size2=$4
if [ "$numdrives" -eq 1 ]; then
cat << EOF >> /tmp/partinfo
part / --fstype ext3 --size=2048 --grow --ondisk=$disk1 --asprimary
part /boot --fstype ext3 --size=1024 --ondisk=$disk1 --asprimary --label=MYLABEL
EOF
)
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20090601/98a5a129/attachment.htm>
More information about the Kickstart-list
mailing list