Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 293439 Details for
Bug 391443
sys-kernel/genkernel doesnt autodetect the key device if at other address than specified
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
initrd.scripts_fix-autohandling-of-wrong-but-existing-keydev.patch
initrd.scripts_fix_autohandling_of_wrong_but_existing_keydev.patch (text/plain), 2.38 KB, created by
Thomas Bettler
on 2011-11-22 21:37:15 UTC
(
hide
)
Description:
initrd.scripts_fix-autohandling-of-wrong-but-existing-keydev.patch
Filename:
MIME Type:
Creator:
Thomas Bettler
Created:
2011-11-22 21:37:15 UTC
Size:
2.38 KB
patch
obsolete
>--- initrd.scripts.orig 2011-11-21 20:23:05.830355895 +0100 >+++ initrd.scripts 2011-11-22 00:58:53.790815922 +0100 >@@ -354,7 +354,7 @@ > then > eval $1 >/dev/null 2>/dev/null > else >- splash 'verbose' > /dev/null & > eval $1 > res=$? > if [ ${res} -eq 0 ] >@@ -815,6 +815,8 @@ > done > if [ ! -b "${LUKS_KEYDEV}" ] > then >+ warn_msg "Removable device ${LUKS_KEYDEV} not found. Trying to autodetect correct device..." ${CRYPT_SILENT} >+ # auto handling of *inexistent* LUKS_KEYDEV > eval CRYPT_${TYPE}_KEY=${LUKS_KEY} > bootstrapKey ${TYPE} > eval LUKS_KEYDEV='"${CRYPT_'${TYPE}'_KEYDEV}"' >@@ -833,18 +835,38 @@ > mount -n -o ro ${LUKS_KEYDEV} ${mntkey} >/dev/null 2>/dev/null > if [ "$?" != '0' ] > then >- KEYDEV_ERROR=1 >- bad_msg "Mounting of device ${LUKS_KEYDEV} failed." ${CRYPT_SILENT} >+ warn_msg "Mounting of device ${LUKS_KEYDEV} failed. Trying to autodetect correct device..." ${CRYPT_SILENT} >+ # auto handling of *wrong* / *not mountable* LUKS_KEYDEV >+ eval unset CRYPT_${TYPE}_KEYDEV >+ eval CRYPT_${TYPE}_KEY=${LUKS_KEY} >+ bootstrapKey ${TYPE} >+ eval LUKS_KEYDEV='"${CRYPT_'${TYPE}'_KEYDEV}"' >+ if [ ! -b "${LUKS_KEYDEV}" ]; then >+ KEYDEV_ERROR=1 >+ bad_msg "Removable device ${LUKS_KEYDEV} not found." ${CRYPT_SILENT} >+ fi > continue > else > good_msg "Removable device ${LUKS_KEYDEV} mounted." ${CRYPT_SILENT} >- sleep 2 >+ >+ if [ ! -e "${mntkey}${LUKS_KEY}" ]; then >+ sleep 2 >+ fi >+ > # keyfile exists? > if [ ! -e "${mntkey}${LUKS_KEY}" ]; then > umount -n ${mntkey} 2>/dev/null >/dev/null >- KEY_ERROR=1 >- KEYDEV_ERROR=1 >- bad_msg "Key {LUKS_KEY} on device ${LUKS_KEYDEV} not found." ${CRYPT_SILENT} >+ warn_msg "Key ${LUKS_KEY} on device ${LUKS_KEYDEV} not found. Trying to autodetect correct device..." ${CRYPT_SILENT} >+ # auto handling of *wrong* LUKS_KEYDEV without LUKS_KEY on it >+ eval unset CRYPT_${TYPE}_KEYDEV >+ eval CRYPT_${TYPE}_KEY=${LUKS_KEY} >+ bootstrapKey ${TYPE} >+ eval LUKS_KEYDEV='"${CRYPT_'${TYPE}'_KEYDEV}"' >+ if [ ! -b "${LUKS_KEYDEV}" ]; then >+ KEY_ERROR=1 >+ KEYDEV_ERROR=1 >+ bad_msg "Key ${LUKS_KEY} on device ${LUKS_KEYDEV} not found." ${CRYPT_SILENT} >+ fi > continue > fi > fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 391443
: 293439