Re: [suse-autoinstall] Disk partitioning with pre script !!
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>
On Wednesday 19 October 2005 15:25, Ajay Mulwani wrote:
2. rules.xml : is exactly the same as you had mailed earlier.
that is broken.
$ 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>
the line above has a syntax error. First and Last Bracket don't fit together.
echo -n $mem ]]> </script> <match>499999</match>
greater </custom1> <result> <profile>classes/largeswap.xml</profile> <continue config:type="boolean">true</continue> </result> </rule> <rule> <custom1>
the <script> is missing. Copy it from the other rule
<match>500000</match>
lower </custom1>
the <result> is missing
<profile>classes/smallswap.xml</profile> <continue config:type="boolean">true</continue>
close the result here with </result> close the rule here with </rule> and start a the new one with <rule>
<custom1> <match>*</match>
exact </custom1> <result> <profile>classes/autoinst.xml</profile> <continue config:type="boolean">false</continue> </result> </rule> </rules> </autoinstall>
then put everything between
participants (2)
-
Ajay Mulwani
-
Uwe Gansert