What I do is partition everything in the preinstall script by echoing commands into fdisk. This makes sure that all of my disks are identical.
%pre
# Create the disk device
mknod /dev/hda
# Set up the partition tables
echo | fdisk /dev/hda <<EOF
o
w
EOF
echo | fdisk /dev/hda <<EOF
n
p
1
1
6
n
p
2
7
108
n
p
3
109
173
n
e
4
174
2434
n
174
428
n
429
2106
n
2107
2237
n
2238
2368
n
2369
2433
w
EOF
part /boot -- --fstype ext3 --size 50 --noformat
part / -- --fstype ext3 --size 800 --asprimary
part /usr -- --fstype ext3 --size 2000 --grow
..... etc
Paul
-----Original Message-----
From: Preston Wade [mailto:Preston_Wade@xxxxxxxxxx]
Sent: Wednesday, February 26, 2003 3:27 PM
To: 'kickstart-list@xxxxxxxxxx'
Subject: partitioning
Is it possible to create partitions inside of the pre-install script?
What we are trying to do is install a new machine but we would like to use
the --onpart switch to specify which partitions are where, even if the disk
is brand new with no partitions.
Thanks,
Preston
_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/kickstart-list