Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85924 - losetup does not have -F option, cant use already Encrypted Filesystems
Summary: losetup does not have -F option, cant use already Encrypted Filesystems
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-19 10:48 UTC by Eric Aksomitis
Modified: 2005-03-19 10:57 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 Eric Aksomitis 2005-03-19 10:48:47 UTC
losetup on Gentoo does not have a -F option (read from fstab).  Also , mounting a previously built encrypted filesystem does not work.  mount returns an error stating:
key size must be specified

This is preventing me from converting to Gentoo, as all my data is not easily reachable until I can mount the already built filesystems.

If I copy the losetup binary from another distribution, I am able to manually run losetup and then mount manually, and it works (based on this I am relatively sure I compiled the kernel modules fine, both raid and cryptoloop).  It appears I have the most current losetup version ( 2.12 unix-util or whatever it is).  The version that works on the other distro appears to be the same ( losetup-2.12a-5mdk )

Expected result:
losetup should have -F option, and I should be able to mount previously created encrypted filesystems by copying the fstab line, and supplying the password.

Current result:
I have to copy the losetup binary into this distribution, then run it.

Gentoo losetup returns:
losetup: invalid option -- V
usage:
  losetup loop_device                                      # give info
  losetup -d loop_device                                   # delete
  losetup [ -e encryption ] [ -o offset ] loop_device file # setup


What I expect to see is:

losetup: invalid option -- V
usage:
  losetup [-e encryption] [options] loop_device file  # setup
  losetup -F [options] loop_device [file]   # setup, read /etc/fstab
  losetup loop_device                       # give info
  losetup -a                                # give info of all loops
  losetup -d loop_device                    # delete
options:  -o offset  -s sizelimit  -p passwdfd  -S pseed  -H phash
          -I loinit  -T  -K gpgkey  -G gpghome  -C itercountk  -v  -r
Comment 1 SpanKY gentoo-dev 2005-03-19 10:55:04 UTC
not a security issue
Comment 2 SpanKY gentoo-dev 2005-03-19 10:57:17 UTC
sounds like mdk is using outdated versions of cryptoloop

if you're using util-linux-2.12q, i suggest you try `USE=old-crypt emerge util-linux` and then use `losetup-old-crypt` ... if that fails to work, that means mdk is prob using *really* outdated cryptoloop which means Gentoo doesnt support it any longer