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

RE: part-include



I have successfully done this with RHEL 2.1, 3 and 4.

The %include is actually the second to last item in my config section,
just before reboot:

%include /tmp/partinfo
reboot

And this is in my pre:

# Determine how many drives we have
set $(list-harddrives)
let numd=$#/2
d1=$1
d2=$3

if [ $numd -ge 2 ] ; then
cat << EOF >> /tmp/partinfo
part pv.01 --size=1 --grow --fstype=ext3 --ondisk=$d1
volgroup volgrp01 pv.01
part pv.02 --size=1 --grow --fstype=ext3 --ondisk=$d2
volgroup volgrp02 pv.02
part / --fstype ext3 --size=10240 --ondisk=$d1
logvol /var --vgname=volgrp01 --size=8192 --name=var
part /boot --fstype ext3 --size=256 --ondisk=$d1
logvol /home --vgname=volgrp02 --size=4096 --name=home
logvol /tmp --vgname=volgrp01 --size=2048 --name=tmp
part swap --recommended --ondisk=$d1
EOF

else

cat << EOF >> /tmp/partinfo
part pv.01 --size=1 --grow --fstype=ext3 --ondisk=$d1
volgroup volgrp01 pv.01
part / --fstype ext3 --size=10240 --ondisk=$d1
logvol /var --vgname=volgrp01 --size=8192 --name=var
part /boot --fstype ext3 --size=256 --ondisk=$d1
logvol /home --vgname=volgrp01 --size=4096 --name=home
logvol /tmp --vgname=volgrp01 --size=2048 --name=tmp
part swap --recommended --ondisk=$d1
EOF

-----Original Message-----
From: kickstart-list-bounces redhat com
[mailto:kickstart-list-bounces redhat com] On Behalf Of James Puellmann
Sent: Friday, April 07, 2006 7:09 AM
To: Discussion list about Kickstart
Subject: Re: part-include

I've used %include for partitioning without any problems with RHEL ES 4
by putting the partition %include directive between the "mouse" and
"bootloader" options. (before the %pre) and then doing this in the %pre:

cat > /tmp/include << EOF
zerombr yes
clearpart --all
partition /boot --fstype=ext3 --size=200 partition swap --size=2000
partition pv.01 --size=1000 --grow volgroup myvg pv.01 logvol /
--vgname=myvg --name=rootvol --size=1000 --grow logvol /tmp
--vgname=myvg --name=tmp --size=1024 EOF


Philip Rowlands wrote:

> On Thu, 6 Apr 2006, Stephen Mah wrote:
>
>> I have a %pre script that writes to /tmp/part-include depending on 
>> the hard drive layout.
>> The file, part-include is successfully written, but kickstart seems 
>> to ignore it.
>>
>> I've tried putting, before the %pre section and in the %pre section.
>> %include /tmp/part-include
>
>
> Which version of RHEL/Fedora? I know I had problems with %include in 
> older releases.
>
>
> Cheers,
> Phil
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list redhat com
> https://www.redhat.com/mailman/listinfo/kickstart-list
>

_______________________________________________
Kickstart-list mailing list
Kickstart-list redhat com
https://www.redhat.com/mailman/listinfo/kickstart-list


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