dynamic partitioning
Does anyone know how to create dynamic on-the-fly partitioning? (on SuSE Linux Professional 9.1) I have a heterogenous machine park with disk layout ranging from 1 to 4 disks and various requirements, i.e. raid on some, LVM on some, raid and LVM on some. I would like to create the partitioning scheme as part of the (lovely) automated installation process using autoyast. However, I've played around with the rules mechanism and as far as I can see, there's gonna be a lot of extra coding to cover every possible scenario as opposed to creating the partitioning on-the-fly. Also, does anyone have the XML XInclude feature working on SuSE Pro 9.1? I've tried and I just can't get it to work for me. Any hints? R -- stava@jonitec.se
On Thursday 12 August 2004 20:04, Lars Stavholm wrote:
Also, does anyone have the XML XInclude feature working on SuSE Pro 9.1? I've tried and I just can't get it to work for me.
Here is a stripped down file that worked for me. Also note: If you load this in the 'yast autoyast' module, then the file to be included actually will be included by YaST *upon opening* of the file. You probably will discover that. ----8<----8<---- <?xml version="1.0"?> <!DOCTYPE profile SYSTEM "/usr/share/autoinstall/dtd/profile.dtd"> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns" xmlns:xinclude="http://www.w3.org/2001/XInclude"> <configure> <scripts> <post-scripts config:type="list"> <xinclude:include href="http://10.0.0.2/pub/suse/profiles/inc.10.0.0/install-apt.sh.xml" /> </post-scripts> </scripts> </configure> </profile> ---->8---->8---- And here's install-apt.sh.xml: ----8<----8<---- <script> <filename>install-apt.sh</filename> <interpreter>shell</interpreter> <source> <![CDATA[ function get_file_list() { local url="${1%/}/" wget -qO- $url | egrep -i 'href="(apt|apt-libs|lua)-[0-9]' | sed 's|^.*[Hh][Rr][Ee][Ff]="([^"]+)".*$|'"$url"'1|' } r="$ROOT" && mkdir -p $r/etc/apt SuSE_VER=`grep '^VERSION' /etc/SuSE-release` SuSE_VER="${SuSE_VER##* = }" IP="${PROFILE_SERVER-10.0.0.1}" if ping -qc 1 $IP > /dev/null; then URL="http://$IP/pub/suse/apt/$SuSE_VER" files="`get_file_list $URL/`" echo rpm -Uhv $files echo wget -qO$r/etc/apt/sources.list.HTTP ${URL}/sources.list.HTTP fi ]]> </source> </script> ---->8---->8---- Cheers, Leen
Lars Stavholm wrote:
Does anyone know how to create dynamic on-the-fly partitioning?
(on SuSE Linux Professional 9.1)
I have a heterogenous machine park with disk layout ranging from 1 to 4 disks and various requirements, i.e. raid on some, LVM on some, raid and LVM on some. I would like to create the partitioning scheme as part of the (lovely) automated installation process using autoyast. However, I've played around with the rules mechanism and as far as I can see, there's gonna be a lot of extra coding to cover every possible scenario as opposed to creating the partitioning on-the-fly.
Maybe using a custom script in the rules might work. Use a shell script to figure out what machine you are on (using fdisk, /proc etc.) and return e.g. an integer. Dependant on the return value you could then choose a profile in rules.xml that matches the partition behaviour. cu, Frank -- Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *
participants (3)
-
Frank Steiner
-
Lars Stavholm
-
Leendert Meyer