summaryrefslogtreecommitdiffstats
path: root/sys-apps/mkinitrd/files/mkinitrd-ds-raid.patch
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /sys-apps/mkinitrd/files/mkinitrd-ds-raid.patch
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'sys-apps/mkinitrd/files/mkinitrd-ds-raid.patch')
-rw-r--r--sys-apps/mkinitrd/files/mkinitrd-ds-raid.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys-apps/mkinitrd/files/mkinitrd-ds-raid.patch b/sys-apps/mkinitrd/files/mkinitrd-ds-raid.patch
new file mode 100644
index 0000000..3eced0a
--- /dev/null
+++ b/sys-apps/mkinitrd/files/mkinitrd-ds-raid.patch
@@ -0,0 +1,15 @@
+diff -dPNur mkinitrd-4.2.17/mkinitrd mkinitrd-4.2.17-new/mkinitrd
+--- mkinitrd-4.2.17/mkinitrd 2006-01-05 17:11:25.000000000 +0000
++++ mkinitrd-4.2.17-new/mkinitrd 2006-01-05 16:54:20.000000000 +0000
+@@ -1015,8 +1015,11 @@
+ if [ -x /sbin/mdassemble ]; then
+ cp $verbose -aL /sbin/mdassemble $MNTIMAGE/sbin
+ raidstart_command="mdassemble"
++ elif [ -x /sbin/mdadm.static ]; then
++ inst /sbin/mdadm.static $MNTIMAGE/sbin/mdadm
++ raidstart_command="mdadm -A -s"
+ elif [ -x /sbin/mdadm ]; then
+ inst /sbin/mdadm $MNTIMAGE/sbin
+ raidstart_command="mdadm -A -s"
+ else
+ raidstart_command="raidautorun /dev/md${md}"