OK, I've resolved my troubles with mdadm-based RAID and suse10 using the attached post-install script. Maybe we should put it somewhere like on wiki and include in doc/examples/post-install, what do you think?
Moreover this script should be useful also to migrate from non-RAID (or non-LVM) images into RAID or LVM based installations. Cheers, -Andrea
#!/bin/sh grub_conf="/boot/grub/menu.lst" # scan for volume groups vgscan --mknodes root_dev=`cat /proc/mounts | grep " \/ \| \/a " | tail -1 | cut -d' ' -f1` # get INITRD_MODULES from system configuration . /etc/sysconfig/kernel modules="$INITRD_MODULES" # create the initrd /sbin/mkinitrd -m "linear raid0 raid1 raid5 raid6 raid10 $INITRD_MODULES" -d $root_dev # fix root in grub.conf sed -i "s:root=\S*:root=${root_dev}:" $grub_conf