Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206747 - sys-apps/util-linux-2.13.1 - crypto-fs broken again
Summary: sys-apps/util-linux-2.13.1 - crypto-fs broken again
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Highest critical (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-20 10:31 UTC by Jan Schubert
Modified: 2008-04-02 10:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Schubert 2008-01-20 10:31:00 UTC
For several times in the past, updating util-linux broke my crypto fs (and according to bugzilla many more). Now it happend again after trying 2.13.1. Running 2.13-r3 worked fine before for several weeks. Also 2.13.0.1 is not doing well so I downgraded to 2.13-r2 (as long as -r3 seems to be removed from portage).

Using a "wrong" version just throws the standard error:

# mount /crypto/
Password:
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Comment 1 Jan Schubert 2008-01-20 10:33:21 UTC
I'm using Blowfish, this is the relevant part from /etc/fstab:

/dev/sda2               /crypto         reiserfs        encryption=blowfish,noatime,noauto       0 0
Comment 2 SpanKY gentoo-dev 2008-01-20 11:32:03 UTC
please review the bug reporting guide:
 http://www.gentoo.org/doc/en/bugzilla-howto.xml#doc_chap6

you need to include:
 - emerge --info
 - emerge util-linux -pv
 - the tail of `dmesg` like the error from mount states

also, please explain what you mean by "2.13.0.1 is not doing well" as that version should function pretty much exactly the same as 2.13-r2
Comment 3 Jan Schubert 2008-01-20 15:19:00 UTC
Hm, 2.13.0.1 ist just not working (the same way like 2.13.1), 2.13-r2 (and -r3 which i run before) worked fine. Again, this happens every other update of util-linux so it might be known issue in updating util-linux.

# emerge -pv util-linux

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] sys-apps/util-linux-2.13.1 [2.13-r2] USE="crypt nls -loop-aes% -old-linux (-selinux)" 2,788 kB

Total: 1 package (1 upgrade), Size of downloads: 2,788 kB


dmesg just tells:

ReiserFS: loop0: warning: sh-2021: reiserfs_fill_super: can not find reiserfs on loop0

# emerge --info
Portage 2.1.4 (default-linux/x86/2007.0/desktop, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r4 i686)
=================================================================
System uname: 2.6.23-gentoo-r4 i686 Genuine Intel(R) CPU T2600 @ 2.16GHz
Timestamp of tree: Sat, 19 Jan 2008 14:30:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en en_US en_GB de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/ebuilds"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib accessibility acl acpi alsa amr audiofile berkdb binfilter bitmap-fonts bluetooth bzip2 cairo cddb cdr cli cracklib crypt cups dbus dga directfb divx dri dvd dvdr dvdread eds emboss encode ethereal evo exif extra-cardsets fam fbcon fbsplash ffmpeg firefox flac fortran gdbm gif gmedia gnome graphviz gstreamer gtk hal iconv irmc isdnlog jpeg kde kerberos lame ldap libcaca live mad matroska midi mikmod mmx mmxext mozcaledar mp3 mp4 mpeg mpeg-2 mpeg2 mplayer mudflap ncurses nls nntp nptl nptlonly nsplugin oci8-instant-client ogg oggvorbis opengl openmp oracle oss pam pcmcia pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline real realmedia reflection reiserfs sdl session sockets spell spl sqlite sse sse2 ssl svg tcpd theora tiff tk truetype truetype-fonts trusted type1-fonts unicode usb vim vim-pager vim-with-x vorbis wifi win32codecs wma wmf wmp wmv x86 xanim xine xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB de" USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Comment 4 SpanKY gentoo-dev 2008-01-20 20:07:16 UTC
i'm guessing you're using loop-aes functionality

you need to have USE=loop-aes in newer versions of util-linux ... older versions enabled it via USE=crypt

ive added a message to the ebuild to note this change
Comment 5 Petr Pisar 2008-04-02 10:35:14 UTC
Remark for other frustrated users:

This bug disallows swaping with random encryption keys. /etc/fstab:
/dev/hda2       none        swap        sw,loop=/dev/loop1,encryption=twofish

$ swapon /dev/hda2
/dev/hda2: Invalid argument

merging 2.13.1 +loop-aes gets back the functionality.