Package: libpam-mount Version: 0.13-2 Severity: normal i have tried to use the /sbin/mount.crypt helper for mounting a luks-crypted container image. But this don't work cause of wrong parameter parsing the "-o loop" Parameter. Perhaps my cryptmount command in pam_mount.conf was wrong (then correct me please):
cryptmount /sbin/mount.crypt %(VOLUME) %(MNTPT) "%(before=\"-o \" OPTIONS)" But the "-o loop" (after adding loop as parameter inside volume declaration) will be given as single parameter to mount.crypt. And this don't work there with the Option Switch to parse the $OPTIONS. I've built a simple (but perhaps not nifty) workaround with like this (inside mount.crypt): ****************************** while :; do case "${1:0:2}" in -h | "-?" ) echo -e usage: ${0##*/} "$USAGE" >&2 exit 1 ;; -o ) OPTIONS="${1:2}"; ;; -?* ) echo "${0##*/}: unrecognized option: $1" >&2 exit 1 ;; * ) break ;; esac shift done ****************************** -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (990, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16.16 Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Versions of packages libpam-mount depends on: ii libc6 2.3.6-9 GNU C Library: Shared libraries ii libglib2.0-0 2.10.2-2 The GLib library of C routines ii libssl0.9.8 0.9.8b-2 SSL shared libraries ii mount 2.12r-10 Tools for mounting and manipulatin ii zlib1g 1:1.2.3-11 compression library - runtime libpam-mount recommends no packages. -- debconf-show failed -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]