This appears to be related to something peculiar happening to LVM, I'm
not using LVM, but /usr/share/initramfs-tools/hooks/cryptroot appears to
be trying to read a bunch of volume group data after reading
/etc/crypttab (which is empty!)...

+ grep -s ^[^#] /etc/crypttab
+ read target source key options
+ candidates=
+ devices=
+ count=0
+ [ 0 -gt 0 ]
+ return 0
+ initramfsdevs=
+ add_device 04f31c0c-8ee4-4444-a571-9c798b0f1022
+ local node nodes opts lastopts i count
+ nodes=04f31c0c-8ee4-4444-a571-9c798b0f1022
+ opts=
+ lastopts=
+ [ -z 04f31c0c-8ee4-4444-a571-9c798b0f1022 ]
+ echo   
+ grep -q \b04f31c0c-8ee4-4444-a571-9c798b0f1022\b
+ node_is_in_crypttab 04f31c0c-8ee4-4444-a571-9c798b0f1022
+ local node
+ node=04f31c0c-8ee4-4444-a571-9c798b0f1022
+ grep -q ^04f31c0c-8ee4-4444-a571-9c798b0f1022\b /etc/crypttab
+ return 1
+ get_lvm_deps 04f31c0c-8ee4-4444-a571-9c798b0f1022
+ local node deps maj min depnode
+ node=04f31c0c-8ee4-4444-a571-9c798b0f1022
+ [ -z 04f31c0c-8ee4-4444-a571-9c798b0f1022 ]
+ dmsetup --noheadings splitname 04f31c0c-8ee4-4444-a571-9c798b0f1022
+ cut -d: -f1
+ vgs --noheadings -o pv_name 04f31c0c

Running any LVM command hangs...

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

Title:
  apt-get upgrade hung when it comes to update initramfs

Status in Ubuntu on IBM z Systems:
  Invalid
Status in linux package in Ubuntu:
  Invalid

Bug description:
  ---Problem Description---
  apt-get upgrade process is hung when it comes to update the initramfs and it 
never finishes with any error messages.  So I have to kill the process and 
restart it. But the system asks run 'sudo dpkg --configure -a' to correct the 
problem if I run 'apt-get upgrade' again. I got the same problem with running 
'dpkg --configure -a'. 

  root@ub01:~# apt-get upgrade
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  Calculating upgrade... Done
  The following packages have been kept back:
    linux-generic linux-headers-generic linux-image-generic python-glance-store
  0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
  1 not fully installed or removed.
  After this operation, 0 B of additional disk space will be used.
  Do you want to continue? [Y/n] y
  Setting up initramfs-tools (0.122ubuntu8.8) ...
  update-initramfs: deferring update (trigger activated)
  Processing triggers for initramfs-tools (0.122ubuntu8.8) ...
  update-initramfs: Generating /boot/initrd.img-4.4.0-45-generic
  W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.

  ---uname output---
  Linux ub01 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:14:35 UTC 2016 s390x 
s390x s390x GNU/Linux
   
  Machine Type = z13 
   
  ---Debugger---
  A debugger is not configured
   
  ---Steps to Reproduce---
   apt-get update
  apt-get upgrade
   
  Stack trace output:
   no
   
  Oops output:
   no
   
  System Dump Info:
    The system is not configured to capture a system dump.
   
  -Attach sysctl -a output output to the bug.

  Below is what I have in the /boot directory

  -rw-------  1 root root  2552549 Oct 19 10:23 System.map-4.4.0-45-generic
  -rw-r--r--  1 root root   535651 Oct 19 10:23 abi-4.4.0-45-generic
  -rw-------  1 root root    13824 Nov 21 20:12 bootmap
  -rw-r--r--  1 root root    65205 Oct 19 10:23 config-4.4.0-45-generic
  lrwxrwxrwx  1 root root       27 Oct 26 16:52 initrd.img -> 
initrd.img-4.4.0-45-generic
  -rw-r--r--  2 root root 13325095 Nov 21 20:12 initrd.img-4.4.0-45-generic
  -rw-r--r--  2 root root 13325095 Nov 21 20:12 
initrd.img-4.4.0-45-generic.dpkg-bak
  -rw-r--r--  1 root root        0 Feb  4 01:47 initrd.img-4.4.0-45-generic.new
  drwx------  2 root root    12288 Oct 26 16:50 lost+found
  lrwxrwxrwx  1 root root       24 Oct 26 16:52 vmlinuz -> 
vmlinuz-4.4.0-45-generic
  -rw-------  1 root root  3690376 Oct 19 10:23 vmlinuz-4.4.0-45-generic

  Below is the disk space, /boot has enough space.

  Filesystem                 Size  Used Avail Use% Mounted on
  udev                       126G     0  126G   0% /dev
  tmpfs                       26G  2.6G   23G  11% /run
  /dev/mapper/ub01--vg-root  101G  9.9G   87G  11% /
  tmpfs                      126G     0  126G   0% /dev/shm
  tmpfs                      5.0M     0  5.0M   0% /run/lock
  tmpfs                      126G     0  126G   0% /sys/fs/cgroup
  /dev/mapper/mpatha-part1   472M   22M  426M   5% /boot
  cgmfs                      100K     0  100K   0% /run/cgmanager/fs
  tmpfs                       26G     0   26G   0% /run/user/1000
  tmpfs                       26G     0   26G   0% /run/user/1002

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1662187/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to