Re: [suse-autoinstall] Disk partitioning with pre script !!
Use a rules.xml and remove Partitioning from the autoinst.xml and create classes hth Hajo NOT TESTEST $ 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>
participants (1)
-
Hans-Joachim Ehlers