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