[Bug 1237556] Re: cryptsetup removed from initrd.img on upgrade to 13.10

vamped 1237556 at bugs.launchpad.net
Fri Oct 11 19:18:30 UTC 2013


"red-dwarf" is a previous LVM PV name. It looks like I have some cruft
left over from a previous installation in the file: /etc/initramfs-
tools/conf.d/cryptroot. I just deleted it.

I am booted into a backup installation (12.04) on a different hard disk.
I am unable / don't_know_how to boot into the updated installation.

I manually mounted the 13.10 (previously 13.04) installation. To
generate a new initramfs, i did the following.

I mounted the 13.10 installation at /media/new_root. Then

# for i in /dev /dev/pts /proc /sys /run; do mount -B $i /media/new_root$i; done
# chroot /media/new_root

I added CRYPTSETUP='y' to /etc/initramfs-tools/initramfs.conf

# update-initramfs -u -k 3.11.0-11-generic
update-initramfs: Generating /boot/initrd.img-3.11.0-11-generic
cryptsetup: WARNING: invalid line in /etc/crypttab for XYZ - 
cryptsetup: WARNING: invalid line in /etc/crypttab for XYZ - 
ln: failed to create symbolic link ‘/tmp/mkinitramfs_162yAK/bin/sleep’: File exists

The errors: "cryptsetup: ..." have been there for years, and have not
prevented successful update of initramfs. Last I researched this issue I
found no solution. The last error "ln: failed..." is new.

# lsinitramfs /boot/initrd.img-3.11.0-11-generic | grep cryptsetup
yields no results.
# update-initramfs -c -k 3.11.0-11-generic   # -c vs -u
fails likewise

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cryptsetup in Ubuntu.
https://bugs.launchpad.net/bugs/1237556

Title:
  cryptsetup removed from initrd.img on upgrade to 13.10

Status in “cryptsetup” package in Ubuntu:
  Incomplete

Bug description:
  After an apparently successful upgrade from 13.04 to 13.10 (Kubuntu), reboot was requested. My computer failed to boot. Error:
  /scripts/local-top/cryptroot: line1: /sbin/cryptsetup: not found.

  `lsinitramfs initrd.img-3.11.0-11-generic` does not list cryptsetup

  It should have been detected that my filesystem is encrypted, and
  cryptsetup and associated files should have been placed into the
  initramfs

  I have an encrypted partition, created with `cryptsetup luksFormat`,
  containing LVM for /root /home and swap.

  apt-cache policy cryptsetup
  cryptsetup:
    Installed: 2:1.4.3-4ubuntu4
    Candidate: 2:1.4.3-4ubuntu4
    Version table:
   *** 2:1.4.3-4ubuntu4 0
          500 http://us.archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages
          100 /var/lib/dpkg/status

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: cryptsetup 2:1.4.3-4ubuntu4
  ProcVersionSignature: Ubuntu 3.2.0-54.82-generic 3.2.50
  Uname: Linux 3.2.0-54-generic x86_64
  NonfreeKernelModules: twofish_generic twofish_x86_64_3way twofish_x86_64 twofish_common serpent nls_iso8859_1 nls_cp437 vfat fat ext2 snd_hrtimer rfcomm bnep bluetooth parport_pc ppdev binfmt_misc snd_hda_codec_via snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq_midi nvidia snd_rawmidi psmouse snd_seq_midi_event snd_seq snd_timer snd_seq_device snd joydev serio_raw lp asus_atk0110 mac_hid soundcore parport snd_page_alloc xts gf128mul dm_crypt vesafb usbhid hid pata_jmicron atl1e usb_storage
  ApportVersion: 2.12.5-0ubuntu1
  Architecture: amd64
  Date: Wed Oct  9 11:10:38 2013
  InstallationDate: Installed on 2013-04-25 (166 days ago)
  InstallationMedia: Kubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
  MarkForUpload: True
  ProcEnviron:
   LANGUAGE=
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/usr/bin/zsh
  SourcePackage: cryptsetup
  UpgradeStatus: Upgraded to saucy on 2013-10-05 (3 days ago)
  crypttab: lvm_crypt UUID=0c3f710d-9844-4145-a8f8-465c6d6be4f8 none luks

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



More information about the foundations-bugs mailing list