lvm2/mkinitrd-devmapper-boot.sh
Dr. Werner Fink fc4fb0b87f Accepting request 183370 from home:olh:branches:Base:System
- Remove usage of absolute paths in mkinitrd scripts

- Fix parsing lvdisplay -c output with more than 10 volumes in 
  mkinitrd-lvm2-setup.sh (bnc#826727)

OBS-URL: https://build.opensuse.org/request/show/183370
OBS-URL: https://build.opensuse.org/package/show/Base:System/lvm2?expand=0&rev=62
2013-07-20 11:40:59 +00:00

26 lines
562 B
Bash

#!/bin/bash
#%stage: boot
#%depends: start
#%udevmodules: dm-mod dm-snapshot $dm_modules
#%programs: dmsetup blockdev
# dm-crypt dm-zero dm-mirror
#%if: -n "$root_dm"
#
##### Device Mapper
##
## If the root device uses device mapper, this initializes and waits for the control file
##
## Command line parameters
## -----------------------
##
## root_dm=1 use device mapper
##
load_modules
# because we run before udev we need to create the device node manually
mkdir -p /dev/mapper
if [ ! -c /dev/mapper/control ] ; then
mknod /dev/mapper/control c 10 63
fi