Search
j0ke.net Open Build Service
>
Projects
>
home:jg
:
playground
>
dracut
> 0133-crypt-wait-for-all-rd_LUKS_UUID-disks-to-appear.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0133-crypt-wait-for-all-rd_LUKS_UUID-disks-to-appear.patch of Package dracut
From c30d8d49cd8d69057afc1b754cea153b50ce3f8f Mon Sep 17 00:00:00 2001 From: Harald Hoyer <harald@redhat.com> Date: Mon, 12 Jul 2010 16:16:39 +0200 Subject: [PATCH] crypt: wait for all rd_LUKS_UUID disks to appear Also give a hint in emergency, if one disk is not found. --- modules.d/90crypt/parse-crypt.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules.d/90crypt/parse-crypt.sh b/modules.d/90crypt/parse-crypt.sh index 775617f..04d9ecb 100755 --- a/modules.d/90crypt/parse-crypt.sh +++ b/modules.d/90crypt/parse-crypt.sh @@ -9,9 +9,12 @@ else } > /etc/udev/rules.d/70-luks.rules LUKS=$(getargs rd_LUKS_UUID=) if [ -n "$LUKS" ]; then + echo '. /lib/dracut-lib.sh' > /emergency/crypt.sh for luksid in $LUKS; do printf 'ENV{ID_FS_TYPE}=="crypto_LUKS", ENV{ID_FS_UUID}=="*%s*", RUN+="/sbin/initqueue --unique --onetime --name cryptroot-ask-%%k /sbin/cryptroot-ask $env{DEVNAME} luks-$env{ID_FS_UUID}"\n' $luksid \ >> /etc/udev/rules.d/70-luks.rules + printf '[ -e /dev/disk/by-uuid/*%s* ] || exit 1 \n' $luksid >> /initqueue-finished/crypt.sh + printf '[ -e /dev/disk/by-uuid/*%s* ] || warn "crypto LUKS UUID "%s" not found" \n' $luksid $luksid >> /emergency/00-crypt.sh done else echo 'ENV{ID_FS_TYPE}=="crypto_LUKS", RUN+="/sbin/initqueue --unique --onetime --name cryptroot-ask-%k /sbin/cryptroot-ask $env{DEVNAME} luks-$env{ID_FS_UUID}"' \ -- 1.8.3.1