What are proper install.cfg for configuring multiple slices?

Peter Steele psteele at maxiscale.com
Tue Nov 18 13:39:37 PST 2008


I want to do an automated sysinstall through an install.cfg script and
the script partition the install disk into three slices. I've been going
through various tests trying to figure out what the proper directives
are but I haven't had much luck, and I can't find any good examples.
Here is a snippet of my config file:

 

disk=ad0

bootManager=standard

partition=12582912

diskPartitionEditor

partition=2097152

diskPartitionEditor

partition=free

diskPartitionEditor

 

ad0s1-1=ufs 4194304 /

ad0s1-2=ufs 4194304 /tmp

ad0s1-3=ufs 4194304 /var

ad0s2-1=swap 2097152 none

ad0s3-1=ufs 4194304 none

ad0s3-2=ufs 4194304 none

ad0s3-3=ufs 0 none

diskLabelEditor

diskLabelCommit

 

My intent here is to create three slices-one 6GB in size, another 1GB in
size, and the third sized to consume the remaining free space. When I
run this through sysinstall, it complains that it can't find the space
for the partitions. It even complains that it can't find any free space.
Because the slices don't get created, the subsequent label assignments
fail as well. What is the proper commands for creating multiple slices
in install.cfg?

 

Another thing I'm having trouble with is partitioning more than one
disk. I have four disks that I'd like to partition as part of the
install.cfg script. In fact, I want to partition the four disks more or
less identically (although only one should have an active root
partition). Again though, if I try partitioning another disk after ad0,
sysinstall complains about various things and the disk does not get
partitioned. Can multiple disks be partitioned in this manner or does
the step have to be done as a post-install operation?

 



More information about the freebsd-hackers mailing list