Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 130547

Summary: Cryptsetup-luks gives "invalid argument" with cryptsetup
Product: Gentoo Linux Reporter: Tom Barcellona <tbarcellona>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tom Barcellona 2006-04-19 21:09:52 UTC
Tried to set up encrypted swap on a brand new system. Constantly got "invalid argument" errors whenever I tried to create encrypted volumes. Noticed problem after trying to set up encrypted swap using the cryptfs config file. The server uses evms to manage both boot and root partitions on raid 1, so I thought it may have been a problem with dm-mapper and evms fighting over partitions. Eventually, I switched from cryptsetup-luks to just plain cryptsetup, and everything worked.

emerge --info:
Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.12.0_pre17
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 7zip X acl acpi aim alsa apache2 avi bash-completion berkdb bidi bitmap-fonts bzip2 calendar cap caps cdb cdparanoia cdr clamav cli crypt cups curl curlwrappers dbase dbm dbus dbx dio doc dri dvd dvdread emboss encode ethereal exif expat fastcgi flac flatfile foomaticdb fortran freetds gd gdbm gif gnome gnutls gpm gstreamer gtk gtk2 gtkhtml hal imlib innodb ipv6 isdnlog java javascript jikes jpeg jpeg2k kde lcms libcaca libg++ libwww lm_sensors mad maildir mhash mikmod mmap mmx mng mnogosearch motif mp3 mpeg mpi mysql mysqli ncurses netboot nls nptl offensive ofx ogg oggvorbis opengl oscar oss pam pcre pdflib perl php png postgres pppd python qt quicktime readline reflection samba sasl scanner sdl session skey snmp socks5 spell spl sqlite sqlite3 sse sse2 ssl svg svga sysvipc tcltk tcpd tetex threads tidy tiff truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis wddx wifi win32codecs wmf xinetd xml xml2 xmlrpc xmms xpm xprint xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-20 00:39:22 UTC

*** This bug has been marked as a duplicate of 128925 ***