/[smeserver]/rpms/mkinitrd/sme7/mkinitrd-4.2.1.13-mdassemble.patch
ViewVC logotype

Annotation of /rpms/mkinitrd/sme7/mkinitrd-4.2.1.13-mdassemble.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Mon Aug 24 15:14:31 2009 UTC (14 years, 9 months ago) by slords
Branch: MAIN
CVS Tags: mkinitrd-4_2_1_13-4_1_el4_sme, mkinitrd-4_2_1_13-4_2_el4_sme, HEAD
Changes since 1.2: +0 -0 lines
* Mon Aug 24 2009 Shad L. Lords <slords@mail.com> 4.2.1.13-4.1.sme
- Use generated config file instead of just scanning [SME: 2192]
- Use mdassemble rather than raidautorun in initrd, so that we control
  UUID to device mapping. [SME: 961, 1895]

1 slords 1.1 diff -Nur -x '*.orig' -x '*.rej' mkinitrd-4.2.1.10/mkinitrd mezzanine_patched_mkinitrd-4.2.1.10/mkinitrd
2     --- mkinitrd-4.2.1.10/mkinitrd 2007-01-31 13:45:09.000000000 -0700
3     +++ mezzanine_patched_mkinitrd-4.2.1.10/mkinitrd 2007-05-09 22:02:18.000000000 -0600
4     @@ -740,9 +740,16 @@
5    
6     if [ -n "$startraid" ]; then
7     for dev in $raiddevices; do
8     - cp -a /dev/${dev} $MNTIMAGE/dev
9     - echo "raidautorun /dev/${dev}" >> $RCFILE
10     + echo mknod /dev/${dev} b 9 $(echo $dev | sed s/md//) >> $RCFILE
11     done
12     + cp -a /sbin/mdassemble $MNTIMAGE/sbin
13     + mkdir -p $MNTIMAGE/etc
14     + echo DEVICE partitions > $MNTIMAGE/etc/mdadm.conf
15     + mdadm --examine --scan --config $MNTIMAGE/etc/mdadm.conf | \
16     + sed -r \
17     + -e '/^ +devices=/d' \
18     + -e 's/ num-devices=[0-9]+//' >> $MNTIMAGE/etc/mdadm.conf
19     + echo "/sbin/mdassemble" >> $RCFILE
20     fi
21    
22     if [ -z "$USE_UDEV" ]; then

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed