[pkg-cryptsetup-devel] Bug#949623: Bug#949623: cryptsetup: cryptdisks_stop/start bash completion broken

Guilhem Moulin guilhem at debian.org
Wed Jan 22 21:53:27 GMT 2020


Control: tag -1 moreinfo

On Wed, 22 Jan 2020 at 22:31:49 +0100, Christoph Anton Mitterer wrote:
> Instead of possible device target names it just completes to
> the files of the local directories.

Works fine here, also as non-root.  In a sid chroot:

    ~$ dd if=/dev/zero of=/tmp/disk.img bs=1M count=64 status=none
    ~$ /sbin/cryptsetup luksFormat /tmp/disk.img --pbkdf-force-iterations 4 --pbkdf-memory 32 <<<foo
    ~$ export TABFILE=/tmp/crypttab
    ~$ echo test_crypt /tmp/crypt.img none luks >>"$TABFILE"
    ~$ . /usr/share/bash-completion/completions/cryptdisks
    ~$ /usr/sbin/cryptdisks_start <TAB>
    --          --readonly  -r          test_crypt
    ~$ /usr/sbin/cryptdisks_stop <TAB>

Did you source /usr/share/bash-completion/completions/cryptdisks?  Is
the TABFILE environment variable set to something else than your normal
crypttab(5)?

-- 
Guilhem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-cryptsetup-devel/attachments/20200122/b315f8e9/attachment.sig>


More information about the pkg-cryptsetup-devel mailing list