1 |
slords |
1.1 |
--- mkinitrd-5.1.19.6/mkinitrd.mdassemble 2007-12-20 09:39:29.000000000 -0700 |
2 |
|
|
+++ mkinitrd-5.1.19.6/mkinitrd 2007-12-20 09:22:37.000000000 -0700 |
3 |
|
|
@@ -1347,15 +1347,8 @@ |
4 |
|
|
if [ -n "$raiddevices" ]; then |
5 |
|
|
for dev in $raiddevices; do |
6 |
|
|
cp -a /dev/${dev} $MNTIMAGE/dev |
7 |
|
|
+ emit "raidautorun /dev/${dev}" |
8 |
|
|
done |
9 |
|
|
- inst /sbin/mdassemble "$MNTIMAGE/sbin/mdassemble" |
10 |
|
|
- mkdir -p $MNTIMAGE/etc |
11 |
|
|
- echo DEVICE partitions > $MNTIMAGE/etc/mdadm.conf |
12 |
|
|
- mdadm --examine --scan --config $MNTIMAGE/etc/mdadm.conf | \ |
13 |
|
|
- sed -r \ |
14 |
|
|
- -e '/^ +devices=/d' \ |
15 |
|
|
- -e 's/ num-devices=[0-9]+//' >> $MNTIMAGE/etc/mdadm.conf |
16 |
|
|
- emit "/sbin/mdassemble" |
17 |
|
|
fi |
18 |
|
|
|
19 |
|
|
if [ -n "$vg_list" ]; then |