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