Hello,
Here is a patch to mkinitrd that enables dmraid initialization during init.
I developed it to enable proper initialization of LVM partitions hosted on dmraid based software RAID.
dmraid initrd initialization can be optionally turned off by passing --omit-dmraid command line key to mkinitrd.
My changes are tested on CentOS 4.1 2.6.9-11.EL kernel.
Hopefully this may be useful to people with similar software/hardware configurations.
Can someone suggest/clarify if there is anything else I could/should do to make this patch helpful to as many people as possible and ideally make it part of CentOS distribution?
Thank you very much, Hovhannes Tumanyan
echo " [--omit-dmraid]" >&2
259a261,263
--omit-dmraid) nodmraid=yes ;;
629a634,637
if [ -z "$nodmraid" -a "$kernelmajor" == "2.6" ];
then
inst /sbin/dmraid.static "$MNTIMAGE/bin/dmraid"
fi
710a719,723
if [ -z "$nodmraid" ]; then echo "echo Activating software raid (dmraid)" >>
$RCFILE
echo "dmraid -ay" >> $RCFILE
fi
58a59
echo " [--omit-dmraid]" >&2
259a261,263
--omit-dmraid) nodmraid=yes ;;
629a634,637
if [ -z "$nodmraid" -a "$kernelmajor" == "2.6" ]; then inst /sbin/dmraid.static "$MNTIMAGE/bin/dmraid" fi
710a719,723
if [ -z "$nodmraid" ]; then echo "echo Activating software raid (dmraid)" >> $RCFILE echo "dmraid -ay" >> $RCFILE fi