[CentOS-devel] CentOS mkinitrd support for dmraid

Hovhannes Tumanyan hovhannes_tumanyan at yahoo.com
Mon Apr 17 18:36:35 UTC 2006


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
>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mkdinitrd.diff
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20060417/d2b3a879/attachment.ksh>


More information about the CentOS-devel mailing list