aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2012-07-09 19:47:21 +0200
committerSebastian Pipping <sebastian@pipping.org>2012-07-09 19:50:26 +0200
commit51dcb157423d660f652e44a795cfb9a51724ad1e (patch)
treea8d5e446bf1556d9327dafb8e829329235c9d5f6
parentBump version to 3.4.37 (diff)
downloadgenkernel-51dcb157423d660f652e44a795cfb9a51724ad1e.tar.gz
genkernel-51dcb157423d660f652e44a795cfb9a51724ad1e.tar.bz2
genkernel-51dcb157423d660f652e44a795cfb9a51724ad1e.zip
Restore previous handling of real_root due to report of regressions (bug #419965)
This reverts commit f95264added35c25fb557931116edd3cd0aec7ba. Conflicts: defaults/initrd.scripts
-rw-r--r--ChangeLog4
-rwxr-xr-xdefaults/initrd.scripts5
2 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 42b6f7ce..21e7fdbe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,10 @@
# Distributed under the GPL v2
# $Id$
+ 09 Jul 2012; Sebastian Pipping <sping@gentoo.org> defaults/initrd.scripts:
+ Restore previous handling of real_root due to report of regressions (bug
+ #419965)
+
08 Jul 2012; Sebastian Pipping <sping@gentoo.org> genkernel:
Bump version to 3.4.37
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index f05a746c..258f2bd0 100755
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -751,19 +751,16 @@ openLUKS() {
# please use 'tr' and this line, or remove it
# eval local TYPE=`uppercase $1`
- local LUKS_NAME="$1"
-
case $1 in
root)
local TYPE=ROOT
- [ -n "${REAL_ROOT}" ] && local LUKS_NAME="`echo "${REAL_ROOT}" | sed -e 's|.*/||'`"
;;
swap)
local TYPE=SWAP
;;
esac
- eval local LUKS_DEVICE='"${CRYPT_'${TYPE}'}"' LUKS_NAME="$LUKS_NAME" LUKS_KEY='"${CRYPT_'${TYPE}'_KEY}"' LUKS_KEYDEV='"${CRYPT_'${TYPE}'_KEYDEV}"' LUKS_TRIM='"${CRYPT_'${TYPE}'_TRIM}"'
+ eval local LUKS_DEVICE='"${CRYPT_'${TYPE}'}"' LUKS_NAME="$1" LUKS_KEY='"${CRYPT_'${TYPE}'_KEY}"' LUKS_KEYDEV='"${CRYPT_'${TYPE}'_KEYDEV}"' LUKS_TRIM='"${CRYPT_'${TYPE}'_TRIM}"'
local DEV_ERROR=0 KEY_ERROR=0 KEYDEV_ERROR=0
local mntkey="/mnt/key/" cryptsetup_options=''