[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Kickstart ignoring --label option under %pre script



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 -- --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 -- --asprimary

part /boot --fstype ext3 --size=1024 -- --asprimary --label=MYLABEL
EOF
)

Thanks.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]