https://bugzilla.novell.com/show_bug.cgi?id=218167 leskets@web.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Component|Basesystem |Basesystem Product|SUSE Linux 10.1 |openSUSE 10.2 Resolution|FIXED | ------- Comment #4 from leskets@web.de 2006-12-08 07:34 MST ------- The issue persists with opensuse 10.2 (mkinitrd-1.2-149, lvm2-2.02.13-10). I call mkinitrd without -f. (The switch still does not help anyways.) The script does not recognize the md device because vgs needs somewhat obscure parameters: vgs --noheadings --options devices $vg_root The value of $vg_root on my computer and the name of my volume group is "local". However: vgs --noheadings --options devices local does not print any devices, while both vgs --noheadings --options devices vgs --noheadings --options devices /dev/local work. The remaining changes in my patch make mkinitrd include only the raid kernel modules that are needed. *** mkinitrd.orig 2006-11-25 13:19:37.000000000 +0100 --- mkinitrd 2006-12-08 14:50:52.643359901 +0100 *************** *** 3134,3141 **** if [ "$root_lvm2" ] ; then # Check for LVM2 on top of md md_list= ! pv_list=$(vgs --noheadings --options devices $vg_root 2> /dev/null | sed -n "s@ *\(/dev/.*\)([0-9]*) *@\1@p" | sort | uniq) ! for dev in $pv_list ; do case $dev in /dev/dm-*) root_dmraid=1 --- 3134,3146 ---- if [ "$root_lvm2" ] ; then # Check for LVM2 on top of md md_list= ! if [ "$vg_root" ] ; then ! vg_root_tmp="/dev/$vg_root" ! else ! vg_root_tmp="" ! fi ! pv_list=$(vgs --noheadings --options devices $vg_root_tmp 2> /dev/null | sed -n "s@ *\(/dev/.*\)([0-9]*) *@\1@p" | sort | uniq) ! for dev in $pv_list ; do case $dev in /dev/dm-*) root_dmraid=1 *************** *** 3147,3152 **** --- 3152,3158 ---- md_dev=${dev##/dev/} md_list="$md_dev $md_list" eval md_conf_${md_dev}=\"$mdconf\" + root_md=1 fi ;; esac *************** *** 3218,3236 **** domu_modules="$domu_modules dm-mod dm-snapshot" fi - if [ -n "$md_list" ] ; then - # load all md modules - add_module raid0 - add_module raid1 - add_module raid5 - add_module linear - if [ -f $root_dir/etc/mdadm.conf ] ; then - # make sure we're overriding the default here - md_list= - root_md=1 - fi - fi - if [ -n "$root_dm" ] ; then # Add all dm modules dm_modules=$(dmsetup table | cut -f 4 -d ' ' | sort | uniq) --- 3224,3229 ---- -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.