Browse Source
If we purport to test booting to an md raid, we may as well test it. We do not need the plymouth module and the normal crypt module to include duplicate functionality.master


9 changed files with 27 additions and 19 deletions
@ -1,8 +1,7 @@
@@ -1,8 +1,7 @@
|
||||
#!/bin/sh |
||||
|
||||
[ -b /dev/mapper/$2 ] && exit 0 |
||||
{ |
||||
flock -s 9 |
||||
/sbin/cryptsetup luksOpen -T1 $1 $2 </dev/console >/dev/console 2>&1 |
||||
{ flock -s 9; |
||||
/sbin/cryptsetup luksOpen -T1 $1 $2 </dev/console >/dev/console 2>&1 |
||||
} 9>/.console.lock |
||||
|
||||
|
@ -1,8 +1,11 @@
@@ -1,8 +1,11 @@
|
||||
#!/bin/bash |
||||
dracut_install mdadm |
||||
inst /etc/passwd |
||||
inst /etc/group |
||||
instmods =drivers/md |
||||
[ -x /sbin/mdmon ] && dracut_install mdmon |
||||
inst_rules "$moddir/70-mdadm.rules" |
||||
[ -f /etc/mdadm/mdadm.conf ] && inst /etc/mdadm/mdadm.conf "$initdir" /etc/mdadm.conf |
||||
[ -f /etc/mdadm.conf ] && inst /etc/mdadm.conf "$initdir" |
||||
[ -f /etc/mdadm/mdadm.conf ] && inst /etc/mdadm/mdadm.conf /etc/mdadm.conf |
||||
[ -f /etc/mdadm.conf ] && inst /etc/mdadm.conf |
||||
inst_hook pre-pivot 30 "$moddir/mdmon-pre-pivot.sh" |
||||
|
||||
|
Loading…
Reference in new issue