dmraid/mkinitrd-boot.sh
Dr. Werner Fink 4101c712d5 Accepting request 184080 from home:olh:branches:Base:System
- Remove usage of absolute paths in initrd
- Remove some checks from mkinitrd scripts, they are always true
- List all used binaries in programs tag

OBS-URL: https://build.opensuse.org/request/show/184080
OBS-URL: https://build.opensuse.org/package/show/Base:System/dmraid?expand=0&rev=30
2013-07-24 14:43:23 +00:00

24 lines
467 B
Bash

#!/bin/bash
#%stage: block
#%depends: dm
#%provides: dmroot
#%programs: dmraid
#%programs: mkdir
#%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
dmraid -a y -p
wait_for_events