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 |
slords |
1.2 |
@@ -1347,8 +1347,15 @@ |
4 |
slords |
1.1 |
if [ -n "$raiddevices" ]; then |
5 |
|
|
for dev in $raiddevices; do |
6 |
|
|
cp -a /dev/${dev} $MNTIMAGE/dev |
7 |
slords |
1.2 |
- emit "raidautorun /dev/${dev}" |
8 |
slords |
1.1 |
done |
9 |
slords |
1.2 |
+ inst /sbin/mdassemble.static "$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 |
slords |
1.1 |
fi |
18 |
|
|
|
19 |
|
|
if [ -n "$vg_list" ]; then |