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> <partition_type>primary</partition_type> <partition_nr config:type="integer">1</partition_nr> <partition_id config:type="integer">131</partition_id> <create config:type="boolean">true</create> <format config:type="boolean">true</format> <filesystem config:type="symbol">reiser</filesystem> <mount>/</mount> <size>5GB</size> </partition> <partition> <partition_type>primary</partition_type> <partition_nr config:type="integer">2</partition_nr> <partition_id config:type="integer">130</partition_id> <create config:type="boolean">true</create> <format config:type="boolean">true</format> <filesystem config:type="symbol">swap</filesystem> <mount>swap</mount> <size>512MB</size> </partition> <partition> <partition_type>primary</partition_type> <partition_nr config:type="integer">3</partition_nr> <partition_id config:type="integer">131</partition_id> <create config:type="boolean">true</create> <format config:type="boolean">true</format> <filesystem config:type="symbol">reiser</filesystem> <mount>/var</mount> <size>512MB</size> </partition> <partition> <partition_type>primary</partition_type> <partition_nr config:type="integer">4</partition_nr> <partition_id config:type="integer">131</partition_id> <create config:type="boolean">true</create> <format config:type="boolean">true</format> <filesystem config:type="symbol">reiser</filesystem> <mount>/export</mount> <size>auto</size> </partition> </partitions> <use>all</use> </drive> </partitioning> Re-build: <partitioning config:type="list"> <drive> <device>/dev/hda</device> <partitions config:type="list"> <partition> <partition_type>primary</partition_type> <partition_nr config:type="integer">1</partition_nr> <partition_id config:type="integer">131</partition_id> <create config:type="boolean">false</create> <format config:type="boolean">true</format> <filesystem config:type="symbol">reiser</filesystem> <mount>/</mount> </partition> <partition> <partition_type>primary</partition_type> <partition_nr config:type="integer">2</partition_nr> <partition_id config:type="integer">130</partition_id> <create config:type="boolean">false</create> <format config:type="boolean">true</format> <filesystem config:type="symbol">swap</filesystem> <mount>swap</mount> </partition> <partition> <partition_type>primary</partition_type> <partition_nr config:type="integer">3</partition_nr> <partition_id config:type="integer">131</partition_id> <create config:type="boolean">false</create> <format config:type="boolean">true</format> <filesystem config:type="symbol">reiser</filesystem> <mount>/var</mount> </partition> <partition> <partition_type>primary</partition_type> <partition_nr config:type="integer">4</partition_nr> <partition_id config:type="integer">131</partition_id> <create config:type="boolean">false</create> <format config:type="boolean">false</format> <filesystem config:type="symbol">reiser</filesystem> <mount>/export</mount> </partition> </partitions> <use>all</use> </drive> </partitioning>
Paul Beltrani <spamgrinder@gmail.com> 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> <partition_type>primary</partition_type> <partition_nr config:type="integer">1</partition_nr> <partition_id config:type="integer">131</partition_id> <create config:type="boolean">true</create> <format config:type="boolean">true</format> <filesystem config:type="symbol">reiser</filesystem> <mount>/</mount> <size>5GB</size> </partition> <partition> <partition_type>primary</partition_type> <partition_nr config:type="integer">2</partition_nr> <partition_id config:type="integer">130</partition_id> <create config:type="boolean">true</create> <format config:type="boolean">true</format> <filesystem config:type="symbol">swap</filesystem> <mount>swap</mount> <size>512MB</size> </partition> <partition> <partition_type>primary</partition_type> <partition_nr config:type="integer">3</partition_nr> <partition_id config:type="integer">131</partition_id> <create config:type="boolean">true</create> <format config:type="boolean">true</format> <filesystem config:type="symbol">reiser</filesystem> <mount>/var</mount> <size>512MB</size> </partition> <partition> <partition_type>primary</partition_type> <partition_nr config:type="integer">4</partition_nr> <partition_id config:type="integer">131</partition_id> <create config:type="boolean">true</create> <format config:type="boolean">true</format> <filesystem config:type="symbol">reiser</filesystem> <mount>/export</mount> <size>auto</size> </partition> </partitions> <use>all</use> </drive> </partitioning> Re- build: <partitioning config:type="list"> <drive> <device>/dev/hda</device> <partitions config:type="list"> <partition> <partition_type>primary</partition_type> <partition_nr config:type="integer">1</partition_nr> <partition_id config:type="integer">131</partition_id> <create config:type="boolean">false</create> <format config:type="boolean">true</format> <filesystem config:type="symbol">reiser</filesystem> <mount>/</mount> </partition> <partition> <partition_type>primary</partition_type> <partition_nr config:type="integer">2</partition_nr> <partition_id config:type="integer">130</partition_id> <create config:type="boolean">false</create> <format config:type="boolean">true</format> <filesystem config:type="symbol">swap</filesystem> <mount>swap</mount> </partition> <partition> <partition_type>primary</partition_type> <partition_nr config:type="integer">3</partition_nr> <partition_id config:type="integer">131</partition_id> <create config:type="boolean">false</create> <format config:type="boolean">true</format> <filesystem config:type="symbol">reiser</filesystem> <mount>/var</mount> </partition> <partition> <partition_type>primary</partition_type> <partition_nr config:type="integer">4</partition_nr> <partition_id config:type="integer">131</partition_id> <create config:type="boolean">false</create> <format config:type="boolean">false</format> <filesystem config:type="symbol">reiser</filesystem> <mount>/export</mount> </partition> </partitions> <use>all</use> </drive> </partitioning> -- To unsubscribe, e- mail: suse- autoinstall- unsubscribe@suse.com For additional commands, e- mail: suse- autoinstall- help@suse.com
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> <partition_type>primary</partition_type> <partition_nr config:type="integer">1</partition_nr> <partition_id config:type="integer">131</partition_id> <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 <keep_partition_num>1</keep_partition_num> to your drive section and depending on your pre partitioning a <prefer_remove config:type="boolean">true</prefer_remove> in the drive section might be needed too. But try the <usepart> first or wait for RC2. In RC2 usepart should not be needed anymore. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany e-mail: uwe.gansert@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
participants (3)
-
Paul Beltrani
-
Ryan Partridge
-
Uwe Gansert