mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add sleep to encrypt too
This commit is contained in:
parent
815875eb5e
commit
c90c3ddb25
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,8 @@ run_hook ()
|
|||
{
|
||||
if ! [ "$ENCRYPTRUN" = "1" ]; then
|
||||
/sbin/modprobe -a -q dm-crypt >/dev/null 2>&1
|
||||
# fix if udev initialises /dev/mapper/control
|
||||
sleep 0.5
|
||||
if [ -e "/sys/class/misc/device-mapper" ]; then
|
||||
if [ ! -e "/dev/mapper/control" ]; then
|
||||
/bin/mknod "/dev/mapper/control" c $(cat /sys/class/misc/device-mapper/dev | sed 's|:| |')
|
||||
|
|
Loading…
Reference in a new issue