This commit is contained in:
committed by
Git OBS Bridge
parent
c114ca9b11
commit
56e5ad2fa6
25
mkinitrd-devmapper-boot.sh
Normal file
25
mkinitrd-devmapper-boot.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
#%stage: boot
|
||||
#%depends: start
|
||||
#%udevmodules: dm-mod dm-snapshot $dm_modules
|
||||
#%programs: /sbin/dmsetup /sbin/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
|
Reference in New Issue
Block a user