I’m trying to configure autoyast to create three primary partitions:
/dev/sda1 (/boot)
/dev/sda2 (swap)
/dev/sda3 (/)
This is the XML I’ve come up with:
<partitioning config:type="list">
<drive>
<use>all</use>
<initialize config:type="boolean">true</initialize>
<partitions config:type="list">
<partition>
<mount>/boot</mount>
<size>75mb</size>
<create>true</create>
<partition_nr>1</partition_nr>
<filesystem config:type="symbol">ext2</filesystem>
<format>true</format>
</partition>
<partition>
<mount>swap</mount>
<create>true</create>
<partition_nr>2</partition_nr>
<size>1012mb</size>
<filesystem config:type="symbol">swap</filesystem>
<format>true</format>
</partition>
<partition>
<mount>/</mount>
<create>true</create>
<partition_nr>3</partition_nr>
<size>max</size>
<filesystem config:type="symbol">ext3</filesystem>
<format>true</format>
</partition>
</partitions>
</drive>
</partitioning>
Unfortunately, this is not working as intended. Rather than creating three primary partitions, Autoyast creates an extended partition as /dev/sda1 and then adds /boot, swap, and root partitions as /dev/sda5, /dev/sda6, and /dev/sda7, respectively.
I seem to be missing an instruction or misunderstand something here. Could someone apply a cluebat to my head, please? Thanks!
I think you have to tell AutoYast to ONLY create primary partition (i.e. only part N# under 5)
<initialize config:type="boolean">true</initialize>
<create config:type="boolean">true</create>
<partition_nr config:type="integer">2</partition_nr>
E.
Mair_From_Paris:
I think you have to tell AutoYast to ONLY create primary partition (i.e. only part N# under 5)
<initialize config:type="boolean">true</initialize>
<create config:type="boolean">true</create>
<partition_nr config:type="integer">2</partition_nr>
E.
oops … I’ve been too quick :s
Maybe you are missing the
config:type="integer"
of the
<partition_nr config:type="integer">2</partition_nr>
?
Mair,
Thanks for the input. Specifying type=“integer” didn’t seem to help. With the XML changes I made, though, here’s what I have so far:
<partitioning config:type="list">
<drive>
<use>all</use>
<initialize config:type="boolean">true</initialize>
<partitions config:type="list">
<partition>
<mount>/boot</mount>
<size>75mb</size>
<create config:type="boolean">true</create>
<partition_nr config:type="integer">1</partition_nr>
<filesystem config:type="symbol">ext2</filesystem>
<format>true</format>
</partition>
<partition>
<mount>swap</mount>
<create config:type="boolean">true</create>
<partition_nr config:type="integer">2</partition_nr>
<size>1012mb</size>
<filesystem config:type="symbol">swap</filesystem>
<format>true</format>
</partition>
<partition>
<mount>/</mount>
<create config:type="boolean">true</create>
<partition_nr config:type="integer">3</partition_nr>
<size>max</size>
<filesystem config:type="symbol">ext3</filesystem>
<format>true</format>
</partition>
</partitions>
</drive>
</partitioning>
Could this do any good ?
(remember I’m a novice ^^ )
<partition>
<create config:type="boolean">true</create>
<partition_nr config:type="integer">1</partition_nr>
<size>75mb</size>
<filesystem config:type="symbol">ext2</filesystem>
<format>true</format>
<mount>/boot</mount>
</partition>
In a way to give instruction folowing the actual action path ?
E.
Changing the order of elements didn’t fix it, either. I’ll keep banging on this. In the meantime, I have a workaround that accommodates Autoyast’s behavior. Thanks!