Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 419965
Collapse All | Expand All

(-)old/usr/share/genkernel/defaults/initrd.scripts (-1 / +4 lines)
Lines 751-766 Link Here
751
	# please use 'tr' and this line, or remove it
751
	# please use 'tr' and this line, or remove it
752
	# eval local TYPE=`uppercase $1`
752
	# eval local TYPE=`uppercase $1`
753
753
754
	local LUKS_NAME="$1"
755
754
	case $1 in
756
	case $1 in
755
		root)
757
		root)
756
			local TYPE=ROOT
758
			local TYPE=ROOT
759
			[ -n "${REAL_ROOT}" ] && local LUKS_NAME="$(echo "$REAL_ROOT" | sed -e 's/.*\///')"
757
			;;
760
			;;
758
		swap)
761
		swap)
759
			local TYPE=SWAP
762
			local TYPE=SWAP
760
			;;
763
			;;
761
	esac
764
	esac
762
765
763
	eval local LUKS_DEVICE='"${CRYPT_'${TYPE}'}"' LUKS_NAME="$1" LUKS_KEY='"${CRYPT_'${TYPE}'_KEY}"' LUKS_KEYDEV='"${CRYPT_'${TYPE}'_KEYDEV}"' LUKS_TRIM='"${CRYPT_'${TYPE}'_TRIM}"'
766
	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}"'
764
	local DEV_ERROR=0 KEY_ERROR=0 KEYDEV_ERROR=0
767
	local DEV_ERROR=0 KEY_ERROR=0 KEYDEV_ERROR=0
765
	local mntkey="/mnt/key/" cryptsetup_options=''
768
	local mntkey="/mnt/key/" cryptsetup_options=''
766
769

Return to bug 419965