Kickstart ignoring --label option under %pre script

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

 



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.
_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux