2008-07-24 22:19:53 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#%stage: block
|
|
|
|
#%depends: dm
|
|
|
|
#%provides: dmroot
|
2013-07-24 16:43:23 +02:00
|
|
|
#%programs: dmraid
|
|
|
|
#%programs: mkdir
|
2008-07-24 22:19:53 +02:00
|
|
|
#%if: -n "$root_dmraid"
|
|
|
|
#
|
|
|
|
##### Device Mapper Raid
|
|
|
|
##
|
|
|
|
## If the root device uses a software raid based on device mapper,
|
|
|
|
## this initializes and waits for the device to appear.
|
|
|
|
##
|
|
|
|
## Command line parameters
|
|
|
|
## -----------------------
|
|
|
|
##
|
|
|
|
## root_dmraid=1 use device mapper raid
|
|
|
|
##
|
|
|
|
|
2012-11-29 11:15:10 +01:00
|
|
|
[ -d /run/lock ] || mkdir -p /run/lock >/dev/null 2>&1
|
2013-07-24 16:43:23 +02:00
|
|
|
dmraid -a y -p
|
2008-07-24 22:19:53 +02:00
|
|
|
wait_for_events
|
|
|
|
|