Syntax to get autoyast to leave existing partitions untouched?
I have reviewed the documentation included with autoyast2 v2.11.13 but
have been unable to generate a control file which will reuse
partitions on an IDE drive.
I used autoyast to do an automated install of 9.3Pro on a workstation
and had it automatically create, format and mount the following
partitions:
Part, type, size, FS, mount point
1, primary, 5GB, reiser, /
2, primary, 512MB, swap
3, primary, 512MB, reiser, /var
4, primary, <remainder of drive>, reiser, /export
This worked exactly as expected.
I then tried to rebuild the system as 10.0RC1 using the exact same
control file with the following changes:
1) Do NOT create any of the partitions
2) Only format partitions 1,2 and 3, NOT partition 4
i.e. Do not change the partition layout and do not touch the
filesystem on partition 4.
When attempting the rebuild yast states it will first delete all 4
partitions then recreate them. In effect it is completely rebuilding
the drive and wiping all info. This is not what I would like to
happen.
I expect this may have something to do with the <use>all</use>
property of the second file. However if I specify any value other than
"all" or leave it out completely yast fails with the msg "Error while
configuring partitions. Try again".
Does anyone have a suggestion as to where the error may be?
The partitioning portions of control files follow:
Initial build:
<partitioning config:type="list">
<drive>
<device>/dev/hda</device>
<partitions config:type="list">
<partition>
Paul Beltrani
09/09/05 10:50 am >>> I have reviewed the documentation included with autoyast2 v2.11.13 but have been unable to generate a control file which will reuse
Paul,
I have a similar situation where a particular partition will be
conditionally formatted (/home in my case). The other partitions (swap
and /) are always wiped and recreated. Using SLES9-SP2, simply changing
the <format> field from true to false for /home in my control file
yields the results I want. Interestingly, all of the partitions are
actually deleted and then recreated, but since the partition table is
created exactly as it was before, and the /home partition is marked as
"do not format", all the data is preserved.
Ryan
partitions on an IDE drive.
I used autoyast to do an automated install of 9.3Pro on a workstation
and had it automatically create, format and mount the following
partitions:
Part, type, size, FS, mount point
1, primary, 5GB, reiser, /
2, primary, 512MB, swap
3, primary, 512MB, reiser, /var
4, primary, <remainder of drive>, reiser, /export
This worked exactly as expected.
I then tried to rebuild the system as 10.0RC1 using the exact same
control file with the following changes:
1) Do NOT create any of the partitions
2) Only format partitions 1,2 and 3, NOT partition 4
i.e. Do not change the partition layout and do not touch the
filesystem on partition 4.
When attempting the rebuild yast states it will first delete all 4
partitions then recreate them. In effect it is completely rebuilding
the drive and wiping all info. This is not what I would like to
happen.
I expect this may have something to do with the <use>all</use>
property of the second file. However if I specify any value other than
"all" or leave it out completely yast fails with the msg "Error while
configuring partitions. Try again".
Does anyone have a suggestion as to where the error may be?
The partitioning portions of control files follow:
Initial build:
<partitioning config:type="list">
<drive>
<device>/dev/hda</device>
<partitions config:type="list">
<partition>
On Friday 09 September 2005 18:50, Paul Beltrani wrote:
I have reviewed the documentation included with autoyast2 v2.11.13 but have been unable to generate a control file which will reuse partitions on an IDE drive.
I then tried to rebuild the system as 10.0RC1 using the exact same control file with the following changes: 1) Do NOT create any of the partitions 2) Only format partitions 1,2 and 3, NOT partition 4
I think you stepped into a bug of RC1. I hopefully fixed that in RC2.
Does anyone have a suggestion as to where the error may be?
There is no error on your side. You can try to workaround the problem, but for the final release of the 10.0 this should not be needed anymore. Add the line I've added below to your profile:
The partitioning portions of control files follow:
Re-build: <partitioning config:type="list"> <drive> <device>/dev/hda</device> <partitions config:type="list"> <partition>
primary 1 131 <create config:type="boolean">false</create> <format config:type="boolean">true</format> <filesystem config:type="symbol">reiser</filesystem> <mount>/</mount> <usepart config:type="integer">1</usepart> </partition>
it might also be, that you have to add
participants (3)
-
Paul Beltrani
-
Ryan Partridge
-
Uwe Gansert