Specifying an exact partition scheme?

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

 



Hello all!

I am creating a %pre script to setup the partition schemes dynamically for various drive sizes.
I want to be able to specify the exact partitions to be used for the mount points, I don't want kickstart to have its way :-)

For example:

clearpart --all --initlabel
part swap --size 1000 --onpart sda1
part / --fstype ext3 --size 1000 --onpart sda2
part /var --fstype ext3 --size 5000 --onpart sda3
part /usr --fstype ext3 --size 5000 --onpart sda5
part /home --fstype ext3 --size 1 --grow --onpart sda6


As far as I can tell, you cannot use the --onpart option except when the partitions already exist, kickstart will not create these for you.
And because I am clearpart'ing the partitions anyway there is no way the partitions will exist, nor would I want to set them up ahead of time.

Short of some ugly expect-style hacking of fdisk is there any way to do what I want?

Thanks in advance!


-- 
Jake Gold
Systems Administrator
DTI Services




[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