summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-05-21 06:10:25 +0000
committerMike Frysinger <vapier@gentoo.org>2005-05-21 06:10:25 +0000
commitb29469afffed42bebcaf1f5cf090f05744850660 (patch)
tree023fceab6871f028c2b9b15ae425d4e006b1f9e7 /sys-fs
parentadd pumount patch (diff)
downloadgentoo-2-b29469afffed42bebcaf1f5cf090f05744850660.tar.gz
gentoo-2-b29469afffed42bebcaf1f5cf090f05744850660.tar.bz2
gentoo-2-b29469afffed42bebcaf1f5cf090f05744850660.zip
add some notes about using gpg and /usr on a different partition #90482
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/cryptsetup/files/cryptfs.confd6
-rw-r--r--sys-fs/cryptsetup/files/dm-crypt-start.sh4
2 files changed, 7 insertions, 3 deletions
diff --git a/sys-fs/cryptsetup/files/cryptfs.confd b/sys-fs/cryptsetup/files/cryptfs.confd
index a11e116f9245..9fcc3cce6678 100644
--- a/sys-fs/cryptsetup/files/cryptfs.confd
+++ b/sys-fs/cryptsetup/files/cryptfs.confd
@@ -1,5 +1,5 @@
# /etc/conf.d/cryptfs
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/files/cryptfs.confd,v 1.1 2005/03/01 23:25:14 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/files/cryptfs.confd,v 1.2 2005/05/21 06:10:25 vapier Exp $
# Note regarding the syntax of this file. This file is *almost* bash,
# but each line is evaluated separately. Separate swaps/mounts can be
@@ -7,6 +7,10 @@
# swap= or mount= line starts a new section, similar to lilo or grub
# configuration.
+# Note when using gpg keys and /usr on a separate partition, you will
+# have to copy /usr/bin/gpg to /bin/gpg so that it will work properly.
+# See http://bugs.gentoo.org/90482 for more information.
+
# Swap partitions. These should come first so that no keys make their
# way into unencrypted swap.
# If no options are given, they will default to: -c aes -h sha1 -d /dev/urandom
diff --git a/sys-fs/cryptsetup/files/dm-crypt-start.sh b/sys-fs/cryptsetup/files/dm-crypt-start.sh
index 747d4ac8ce6d..b5704e8e3e69 100644
--- a/sys-fs/cryptsetup/files/dm-crypt-start.sh
+++ b/sys-fs/cryptsetup/files/dm-crypt-start.sh
@@ -1,7 +1,7 @@
# /lib/rcscripts/addons/dm-crypt-start.sh
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/files/dm-crypt-start.sh,v 1.4 2005/05/20 04:03:12 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/files/dm-crypt-start.sh,v 1.5 2005/05/21 06:10:25 vapier Exp $
# Setup mappings for an individual mount/swap
#
@@ -39,7 +39,7 @@ dm-crypt-execute-checkfs() {
ret=$?
eend ${ret} "failure running cryptsetup"
else
- if [[ -x /usr/bin/gpg ]] ; then
+ if type -p gpg >/dev/null ; then
ret=1
while [[ ${ret} -gt 0 ]] ; do
keystring=$(gpg ${gpg_options} ${key} 2>/dev/null </dev/console)