forked from pool/dmraid
Marcus Meissner
73f4264f19
- Move lock file to /run/lock so it wont interfere with systemd. OBS-URL: https://build.opensuse.org/request/show/143482 OBS-URL: https://build.opensuse.org/package/show/Base:System/dmraid?expand=0&rev=28
23 lines
461 B
Bash
23 lines
461 B
Bash
#!/bin/bash
|
|
#%stage: block
|
|
#%depends: dm
|
|
#%provides: dmroot
|
|
#%programs: /sbin/dmraid
|
|
#%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
|
|
##
|
|
|
|
[ -d /run/lock ] || mkdir -p /run/lock >/dev/null 2>&1
|
|
/sbin/dmraid -a y -p
|
|
wait_for_events
|
|
|