[Bug 1513415] Re: cryptsetup blocks between mountroot and bottom in initramfs

Encolpe Degoute encolpe.degoute at free.fr
Wed Nov 11 22:47:27 UTC 2015


I finally fix the bug after more investigations:

1. lvm2 was uninstalled during the 15.04 to 15.10 migration. It creates
the first failure, and it's the point I cannot investigate.

2. booting with the live dvd, we found a lot of local diversions I
didn't made, with a lot of last modification date. I removed all the
diversion, but an udev rules from dmsetup was still missing.

local diversion of /usr/share/initramfs-tools/hooks/thermal to /usr/share/initramfs-tools/thermal.hooks.diverted
local diversion of /usr/share/initramfs-tools/hooks/kbd to /usr/share/initramfs-tools/kbd.hooks.diverted
local diversion of /usr/share/initramfs-tools/hooks/console_setup to /usr/share/initramfs-tools/console_setup.hooks.diverted
local diversion of /usr/share/initramfs-tools/hooks/fixrtc to /usr/share/initramfs-tools/fixrtc.hooks.diverted
local diversion of /usr/share/initramfs-tools/hooks/plymouth to /usr/share/initramfs-tools/plymouth.hooks.diverted
local diversion of /usr/share/initramfs-tools/hooks/compcache to /usr/share/initramfs-tools/compcache.hooks.diverted
local diversion of /usr/share/initramfs-tools/scripts/init-bottom/plymouth to /usr/share/initramfs-tools/plymouth.init.bottom.diverted
local diversion of /usr/share/initramfs-tools/scripts/local-premount/fixrtc to /usr/share/initramfs-tools/fixrtc.local.premount.diverted
local diversion of /usr/share/initramfs-tools/scripts/panic/plymouth to /usr/share/initramfs-tools/plymouth.panic.diverted
local diversion of /usr/share/initramfs-tools/scripts/init-top/console_setup to /usr/share/initramfs-tools/console_setup.init.top.diverted
local diversion of /usr/share/initramfs-tools/scripts/panic/console_setup to /usr/share/initramfs-tools/console_setup.panic.diverted
local diversion of /usr/share/initramfs-tools/scripts/init-top/plymouth to /usr/share/initramfs-tools/plymouth.init.top.diverted


-rwxr-xr-x 1 root root 3.6K Sep 19 10:50 /usr/share/initramfs-tools/compcache.hooks.diverted
-rwxr-xr-x 1 root root 1.2K Oct 20 15:09 /usr/share/initramfs-tools/console_setup.hooks.diverted
-rwxr-xr-x 1 root root 1.7K Oct 20 15:09 /usr/share/initramfs-tools/console_setup.init.top.diverted
-rwxr-xr-x 1 root root 1.7K Oct 20 15:09 /usr/share/initramfs-tools/console_setup.panic.diverted
-rwxr-xr-x 1 root root  472 Jul  8 16:43 /usr/share/initramfs-tools/dmsetup.hooks.diverted
-rwxr-xr-x 1 root root  412 Sep 19 10:50 /usr/share/initramfs-tools/fixrtc.hooks.diverted
-rwxr-xr-x 1 root root 3.5K Sep 19 10:50 /usr/share/initramfs-tools/fixrtc.local.premount.diverted
-rwxr-xr-x 1 root root  301 Sep 16 21:11 /usr/share/initramfs-tools/kbd.hooks.diverted
-rwxr-xr-x 1 root root 2.7K Feb 11  2015 /usr/share/initramfs-tools/plymouth.hooks.diverted
-rwxr-xr-x 1 root root  206 Sep 21  2014 /usr/share/initramfs-tools/plymouth.init.bottom.diverted
-rwxr-xr-x 1 root root  333 Sep 21  2014 /usr/share/initramfs-tools/plymouth.init.top.diverted
-rwxr-xr-x 1 root root  170 Sep 21  2014 /usr/share/initramfs-tools/plymouth.panic.diverted
-rwxr-xr-x 1 root root 1.3K Feb 17  2014 /usr/share/initramfs-tools/thermal.hooks.diverted

3. After a first reinstallation  of dmsetup, the 55-dm.rules was not
present in the initramfs. I need to reinstall it a second time.

This laptop follow all ubuntu migration since 13.10, and that's the
second time lvm2 package is removed during migration. Both lvm2 depends
on dmsetup but cryptsetup doesn't depend on or recommend lvm2.

So for me it's closed.

Thank again TJ.

-- 
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/1513415

Title:
  cryptsetup blocks between mountroot and bottom in initramfs

Status in cryptsetup package in Ubuntu:
  In Progress

Bug description:
  Hello,

  Ubuntu 15.10
  cryptsetup 2:1.6.6-5ubuntu2

  First, I post a question here without any success:
  http://askubuntu.com/questions/693950/impossible-to-boot-on-encrypted-root-partition-after-15-10-upgrade

  With the help of TJ- on IRC, I got more information but no solution.
  This configuration was working since the 14.04 installation.

  The boot sequence is stopped during the initramfs process whitin the
  /usr/share/initramfs-tools/scripts/local-top/cryptroot script, between
  the instant when the good password is validated and the initramfs'
  bottom sequence. At that moment, I can only reboot.

  I can mount and work on my partitions from a 15.10 live dvd.

  My crypt setup:

  /dev/mapper/crypt_root is active and is in use. 
    type:    LUKS1
    cipher:  aes-xts-plain64
    keysize: 512 bits
    device:  /dev/sdb3
    offset:  4096 sectors
    size:    491304960 sectors
    mode:    read/write
  /dev/mapper/crypt_home is active and is in use.
    type:    LUKS1
    cipher:  aes-cbc-essiv:sha256
    keysize: 256 bits
    device:  /dev/sda7
    offset:  4096 sectors
    size:    1130182656 sectors
    mode:    read/write

  
  My /etc/initramfs-tools/modules was empty before the 15.10 upgrade, now it contains:

  cryptoloop
  aes
  sha256
  aes-x86_64
  sha512-ssse3
  dm-mod
  dm-crypt

  My partition should be mounted like this:

  /dev/mapper/crypt_root on / type ext4 (rw,relatime,data=ordered)
  /dev/mapper/crypt_home on /home type ext4 (rw,relatime,data=ordered)
  /dev/sdb2 on /boot type ext4 (rw,relatime,stripe=4,data=ordered)
  /dev/sda2 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
  udev on /dev type devtmpfs (rw,nosuid,relatime,size=4039992k,nr_inodes=1009998,mode=755)
  devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
  proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
  sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
  tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=810576k,mode=755)

  Best regards

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



More information about the foundations-bugs mailing list