Mailinglist Archive: opensuse-autoinstall (89 mails)

< Previous Next >
Re: [suse-autoinstall] Disk partitioning with pre script !!
  • From: "Hans-Joachim Ehlers" <HansJoachim.Ehlers@xxxxxxxxxxxx>
  • Date: Wed, 19 Oct 2005 14:19:04 +0000 (UTC)
  • Message-id: <s35671f6.045@xxxxxxxxxxxxxxxxxxxx>
Hi Ajay,
1) verify with ' xmllint ' any of your xml files.
2) Keep in mind that the rules.xml was an UNTESTed example.
3) Verfiy your directory structure and file security setting . No softlinks and what so ever.
4) I mentioned also the /var/log/Yast2 directory. You will find there the y2log* files . Search them for rules.xml. You will see what happens during parsing the rules.xml.
5) I hope that your 'global' xml does not contain any Swap info. Maybe it is a good idea to REMOVE any partition info from your 'global' xml file and put all partition information into your class files for the sake of simplity

To make the point:
a) verify that your rules.xml works as expected ( search in the log files )
If it works as aspected:
b) Verify the the merging process / the merged xml file

And maybe Uwe got an idea ?

hth
Hajo





============================
Hans-Joachim Ehlers
UNIX Systems Engineer
EUMETSAT
Am Kavalleriesand, 31
64295, Darmstadt, Germany
Tel : +49 6151 807-7307
mailto:hansjoachim.ehlers@xxxxxxxxxxxx
http://www.eumetsat.int

>>> Ajay Mulwani <ajaymulwani@xxxxxxxxx> 19/10/05 15:25 >>>
Hi Hans,

1. The class.xml file was missing that header and footer info which I
added and restarted the install. It seems the swap is still not there
!!

2. rules.xml : is exactly the same as you had mailed earlier.

$ cat rules.xml
<?xml version="1.0"?>
<!DOCTYPE autoinstall SYSTEM "/usr/share/autoinstall/dtd/rules.dtd">
<autoinstall xmlns="http://www.suse.com/1.0/yast2ns";
xmlns:config="http://www.suse.com/1.0/configns";>
<rules config:type="list">
<rule>
<custom1>
<script>
<![CDATA[
#!/bin/sh
mem=$( cat /proc/meminfo | grep -i memtotal | awk '{ print $2 } ' } #
Output is in kbytes
echo -n $mem
]]>
</script>
<match>499999</match>
<match_type>greater</match_type>
</custom1>
<result>
<profile>classes/largeswap.xml</profile>
<continue config:type="boolean">true</continue>
</result>
</rule>
<rule>
<custom1>
<match>500000</match>
<match_type>lower</match_type>
</custom1>
<profile>classes/smallswap.xml</profile>
<continue config:type="boolean">true</continue>
<custom1>
<match>*</match>
<match_type>exact</match_type>
</custom1>
<result>
<profile>classes/autoinst.xml</profile>
<continue config:type="boolean">false</continue>
</result>
</rule>
</rules>
</autoinstall>


$

3. /var/adm/autoinstall/cache/InstalledSystem.xml is certainly missing
the swap partition info.

4. The latest documentation link seems to not working currently.

Regards,
Ajay



< Previous Next >