On Wed, Jun 9, 2010 at 5:05 AM, Uwe Gansert
You can try to specify no device at all and autoyast will guess. But in your case there is a good chance that will fail and autoyast will use the USB stick.
You can use <device>/dev/disk/by-id/....</device> or /dev/disk/by-path/.... because those should not change.
If that is not an option for you either, you can only use a pre-script with some device detection written by you. put <device>___dev1___</device> or so in your partitioning section and "sed" those values out with a pre-script in /tmp/profile/autoinst.xml Write the modified script to /tmp/profile/modified.xml Autoyast will read it again before it's parsing the partitioning section.
I use this script to detect the number of harddisks and detect their capabilities (e.g. if it's a harddisk or not). Perhaps it could be adapted for your purpose? ============ # find out how many hard disks are there EXCEPTIONS="ram[0-9]" let COUNT=0 for f in /sys/block/*; do ISREMOVABLE=`[ -f ${f}/removable ] && cat ${f}/removable || echo -1` ISREADONLY=`[ -f ${f}/ro ] && cat ${f}/ro || echo -1` SIZE=`[ -f ${f}/size ] && cat ${f}/size || echo -1` NAME=`basename ${f}` if [ $ISREMOVABLE -eq 0 ] && [ $ISREADONLY != 1 ] && [ $SIZE -gt 0 ] && [ `echo ${NAME} | egrep -c "${EXCEPTIONS}"` -eq 0 ]; then echo "The device ${f} is a HARD DISK." let COUNT=COUNT+1 fi done case $COUNT in 1) # do whatever you need for ONE hard disk ;; 2) # do whatever you need for TWO hard disks ;; *) echo "I don't know what to do with $COUNT hard disks, using only the first one..." # do whatever you need for ONE hard disk ;; esac ========= -- -- Erico -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org