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 |