← Back to team overview

kernel-packages team mailing list archive

[Bug 1003309] Re: Boot fails after installing updates, error: “cryptsetup: evms_activate is not available"

 

i had the same problem as the_nipper (robert-wirth-gmx) #58.
i migrated a previous "root in lvm in luks" to "root in lvm in luks in raid1" (by creating new block devices incl. a degraded raid1, copying all data over and changing the configuration of crypttab, fstab etc. and updating the initramfs).

the solution mentioned in
http://forums.debian.net/viewtopic.php?f=5&t=74232#p506229 (as linked by
#61) did not work for me, probably because of plymouth...? the stdin of
cryptsetup was not connected so typing the password had no effect
whatsoever, yey... but hey canoncial could get a fancy and completely
useless boot screen, that's important!

anyway, I resorted to copying lots of the ui logic from /usr/share/initramfs-tools/scripts/local-top/cryptroot into the attached script, which has to be put in /etc/initramfs-tools/scripts/local-top/cryptraid (and made executable!).
it is tailored to open /dev/md1, change cryptsource if needed.
then run update-initramfs -k all -u

it works for me, but it is not much tested, ymmv.

** Attachment added: "cryptraid"
   https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1003309/+attachment/3922004/+files/cryptraid

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1003309

Title:
  Boot fails after installing updates, error: “cryptsetup: evms_activate
  is not available"

Status in “linux” package in Ubuntu:
  Confirmed

Bug description:
  I run 12.04 LTS on a virtualbox image. I use LUKS and LVM for whole
  disk encryption.

  After installing recent kernel updates, my system no longer boots. It
  says: "cryptsetup: evms_activate is not available" when it would
  normally ask for passphrase.

  If I boot the previous kernel, I do not get this error.

  This appears to be a bug in the new kernel package?

  Until this is fixed, is there any workaround that will let me boot my
  system with the new kernel?

  
  More info:
  Maybe this issue is related to this bug: https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/957602 ?
  However, this is a much more recent kernel.

  This kernel works: 3.2.0-23-generic, while this one fails:
  3.2.0-24-generic

  
  I have tried doing this:
  sudo su -
  cd /boot/grub
  update-initramfs -u
  update-grub
  reboot

  This did not solve the issue.


  
  It seems that the new kernel does not include evms support, while the older kernel does.
  Is this something that has been officially removed from the Ubuntu provided kernel? If so, why? I am pretty sure this breaks a lot of Ubuntu deployments using LUKS and dmcrypt.


  My /etc/fstab is available here:
  http://p.adora.dk/P2400.html

  My /etc/crypttab is available here:
  http://p.adora.dk/P2401.html
  --- 
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
  AplayDevices:
   **** List of PLAYBACK Hardware Devices ****
   card 0: I82801AAICH [Intel 82801AA-ICH], device 0: Intel ICH [Intel 82801AA-ICH]
     Subdevices: 1/1
     Subdevice #0: subdevice #0
  ApportVersion: 2.0.1-0ubuntu7
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  tdn        2056 F.... pulseaudio
  CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
  Card0.Amixer.info:
   Card hw:0 'I82801AAICH'/'Intel 82801AA-ICH with STAC9700,83,84 at irq 21'
     Mixer name	: 'SigmaTel STAC9700,83,84'
     Components	: 'AC97a:83847600'
     Controls      : 34
     Simple ctrls  : 24
  DistroRelease: Ubuntu 12.04
  HibernationDevice: RESUME=UUID=f1d46fd3-d40c-43e3-b4a3-74fa5f699952
  InstallationMedia: Kubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120424)
  Lsusb:
   Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
  MachineType: innotek GmbH VirtualBox
  Package: linux (not installed)
  ProcEnviron:
   LANGUAGE=en_DK:en
   TERM=xterm
   PATH=(custom, user)
   LANG=en_DK.UTF-8
   SHELL=/bin/zsh
  ProcFB:
   
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.2.0-23-generic root=/dev/mapper/barbera-root ro quiet splash
  ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
  RelatedPackageVersions:
   linux-restricted-modules-3.2.0-23-generic N/A
   linux-backports-modules-3.2.0-23-generic  N/A
   linux-firmware                            1.79
  RfKill:
   
  SourcePackage: linux
  Tags:  precise precise
  Uname: Linux 3.2.0-23-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm audio cdrom dip lpadmin photo plugdev sambashare sudo users video
  dmi.bios.date: 12/01/2006
  dmi.bios.vendor: innotek GmbH
  dmi.bios.version: VirtualBox
  dmi.modalias: dmi:bvninnotekGmbH:bvrVirtualBox:bd12/01/2006:svninnotekGmbH:pnVirtualBox:pvr1.2:
  dmi.product.name: VirtualBox
  dmi.product.version: 1.2
  dmi.sys.vendor: innotek GmbH

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