← Back to team overview

touch-packages team mailing list archive

[Bug 1443413] Re: boot fails on cryptsetup random swap partition with "invalid argument"

 

SYSTEMD_LOG_LEVEL=debug strace -fvvs1024 -o /tmp/t /lib/systemd/systemd-
cryptsetup attach vg-swap dev/dm-6 /dev/urandom swap,cipher=aes-cbc-
essiv:sha256

crypt_init() failed: Block device required

if I put a / in front of /dev/dm-6 I'm getting the flowing:
SYSTEMD_LOG_LEVEL=debug strace -fvvs1024 -o /tmp/tt /lib/systemd/systemd-cryptsetup attach vg-swap /dev/dm-6 /dev/urandom swap,cipher=aes-cbc-essiv:sha256

Set cipher aes, mode cbc-essiv:sha256, key size 256 bits for device /dev/dm-6.
Failed to activate with key file '/dev/urandom': Invalid argument
Please enter passphrase for disk vg-swap on none! 

<Just pressing Enter, because I can't remember the passphrase any more>

Loading of cryptographic parameters failed: Invalid argument
Failed to activate: Invalid argument

But this could it be, it waits for input and because no one is coming it
waits for ever ;-)

do you still need the output of /tmp/tt?

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1443413

Title:
  boot fails on cryptsetup random swap partition with "invalid argument"

Status in systemd package in Ubuntu:
  Incomplete

Bug description:
  Booting with systemd fails always at same stage.
  Using upstart just works.

  grep GRUB_CMDLINE_LINUX /etc/default/grub
  GRUB_CMDLINE_LINUX_DEFAULT=""
  GRUB_CMDLINE_LINUX="systemd.log_target=kmsg systemd.log_level=debug"

  grep debug /boot/grub/grub.cfg
  linux   /vmlinuz-3.19.0-13-generic root=/dev/mapper/vg-root ro systemd.log_target=kmsg systemd.log_level=debug

  Sadly systemd-debug doesn't reveals more information what fails :-(

  lsb_release -rd
  Description:	Ubuntu Vivid Vervet (development branch)
  Release:	15.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1443413/+subscriptions


References