Search
j0ke.net Open Build Service
>
Projects
>
home:jg
:
playground
>
dracut
> 0181-crypt-fix-emergency-script-generation.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0181-crypt-fix-emergency-script-generation.patch of Package dracut
From e45a2dba9d4f231dc56e79edf4d02fcf9d4a9f40 Mon Sep 17 00:00:00 2001 From: Harald Hoyer <harald@redhat.com> Date: Fri, 4 Mar 2011 11:32:32 +0100 Subject: [PATCH] crypt: fix emergency script generation --- modules.d/90crypt/parse-crypt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules.d/90crypt/parse-crypt.sh b/modules.d/90crypt/parse-crypt.sh index 853fe07..fbe0d98 100755 --- a/modules.d/90crypt/parse-crypt.sh +++ b/modules.d/90crypt/parse-crypt.sh @@ -9,13 +9,13 @@ 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 + echo '. /lib/dracut-lib.sh' > /emergency/90-crypt.sh for luksid in $LUKS; do luksid=${luksid##luks-} 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 + printf '[ -e /dev/disk/by-uuid/*%s* ] || warn "crypto LUKS UUID "%s" not found" \n' $luksid $luksid >> /emergency/90-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