I played around a little bit with your config, trying to keep
all partitions, but even with the <usepart> workaround, I couldn't
figure out how...
I set all <create> to false, keeping <format>which still deletes and
recreates all partitions but the first. Then adding <usepart> and
for partition 2 and 3 works, too. /dev/hda2 and
/dev/hda3 are just formatted, not deleted and recreated.
But then I tried the same for partition 5, i.e., adding
<usepart config:type="integer">5</usepart>
and
5
The result is, well, say "somewhat unexpected" :-)
/dev/hda6 is deleted and recreated for mountpoint /dos
/dev/hda7 is created for swap, but /dev/hda2 is used for swap.
/dev/hda8 is created for /, /dev/hda9 for /usr/local/storage.
/dev/hda5 is formatted with ext3.
I thought I might have to specify for
partition 4 (the extended), too, but then partitioning fails
completely.
So I still am not able to keep all partitions and just format some :-(
Here's the config causing that strange partitioning:
<partitioning config:type="list">
<drive>
<device>/dev/hda</device>
<partitions config:type="list">
<partition>
<create config:type="boolean">false</create>
<filesystem config:type="symbol">ntfs</filesystem>
<format config:type="boolean">true</format>
<fstopt>defaults</fstopt>
<mount>/dos</mount>
primary
1
<usepart config:type="integer">1</usepart>
<size>4gb</size>
</partition>
<partition>
<create config:type="boolean">false</create>
<filesystem config:type="symbol">swap</filesystem>
<format config:type="boolean">true</format>
<fstopt>defaults</fstopt>
<mount>swap</mount>
2
primary
<usepart config:type="integer">2</usepart>
<size>1gb</size>
</partition>
<partition>
<create config:type="boolean">false</create>
<filesystem config:type="symbol">ext3</filesystem>
<format config:type="boolean">true</format>
<fstopt>defaults</fstopt>
<mount>/</mount>
3
primary
<usepart config:type="integer">3</usepart>
<size>15gb</size>
</partition>
<partition>
<create config:type="boolean">false</create>
<filesystem config:type="symbol">ext3</filesystem>
<format config:type="boolean">true</format>
<fstopt>defaults</fstopt>
<mount>/local</mount>
5
<usepart config:type="integer">5</usepart>
<size>8gb</size>
</partition>
<partition>
<create config:type="boolean">false</create>
<filesystem config:type="symbol">ext3</filesystem>
<format config:type="boolean">true</format>
<fstopt>defaults</fstopt>
<mount>/usr/local/storage</mount>
6
<size>max</size>
</partition>
</partitions>
1
2
3
5
<use>all</use>
</drive>
</partitioning>
</profile>
--
Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/
Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/
LMU, Amalienstr. 17 Phone: +49 89 2180-4049
80333 Muenchen, Germany Fax: +49 89 2180-99-4049
* Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *