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

Re: Old style fixed partitions in KS-- Anaconda bug??



Cris Rhea wrote:
I'm trying to lay out disk partitions in a certain way-- This has worked for years, but recently broke due either to
a change in the way Kickstart works or a bug in Anaconda.

I use sfdisk to lay out the drive in the %pre section:

Can't help you debug your sfdisk, but the magic cobbler (http://cobbler.et.redhat.com) uses by default is the following...

%include /tmp/partinfo

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

cat << EOF > /tmp/partinfo
part / --fstype ext3 --size=1024 --grow --ondisk=\$d1 --asprimary
part swap --size=1024 --ondisk=\$d1 --asprimary
EOF

This has been working very well.

There shouldn't be any reason to call sfdisk that I'm aware of.

(Thanks to Chip S. for the tip)

--Michael




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