LVM based installation fails with - Unable to install the selected kernel - message

Bug #1364406 reported by bugproxy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
debian-installer (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

---Problem Description---
LVM based installation fails with "Unable to install the selected kernel" message

---uname output---
linux-image-3.16.0-10-generic

Machine Type = POWER8

---Steps to Reproduce---
1) Start Ubuntu 14.10 installation as a Power KVM guest.
2) Select LVM based partition scheme. Go with the default values with /home as a separate mount point.
3) Continue with the installation. While trying to install linux-generic image installation fails with following error :

                  [!!] Configuring linux-image-3.16.0-10-generic

                    Unable to install the selected kernel
      An error was returned while trying to install the kernel into the
      target system.

      Kernel package: 'linux-generic'.

      Check /var/log/syslog or see virtual console 4 for the details.

                                  <Continue>

Install method: DVD

Install disk info: The partition tables of the following devices are changed:
    LVM VG 14102-vg, LV home
    LVM VG 14102-vg, LV root
    LVM VG 14102-vg, LV swap_1
   Virtual disk 1 (vda)

The following partitions are going to be formatted:
   LVM VG 14102-vg, LV home as ext4
   LVM VG 14102-vg, LV root as ext4
   LVM VG 14102-vg, LV swap_1 as swap
   partition #2 of Virtual disk 1 (vda) as ext2

Install ISO Information: Ubuntu 14.10 Aug 25 Daily ISO

Mounted file systems when problem occured.

/target/var/log # df -h
Filesystem Size Used Available Use% Mounted on
none 816.6M 2.4M 814.3M 0% /run
devtmpfs 3.9G 0 3.9G 0% /dev
/dev/sr0 575.8M 575.8M 0 100% /cdrom
/dev/mapper/14102--vg-root
                          6.3G 621.9M 5.3G 10% /target
/dev/vda2 236.3M 26.2M 197.9M 12% /target/boot
/dev/mapper/14102--vg-home
                         68.9G 51.8M 65.4G 0% /target/home
/dev/sr0 575.8M 575.8M 0 100% /target/media/cdrom
/target/var/log #

/var/run # mount
rootfs on / type rootfs (rw,size=4140288k,nr_inodes=64692)
none on /run type tmpfs (rw,nosuid,relatime,size=836224k,mode=755)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=4140288k,nr_inodes=64692,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
/dev/sr0 on /cdrom type iso9660 (ro,relatime)
/dev/mapper/14102--vg-root on /target type ext4 (rw,relatime,errors=remount-ro,data=ordered)
/dev/vda2 on /target/boot type ext2 (rw,relatime)
/dev/mapper/14102--vg-home on /target/home type ext4 (rw,relatime,data=ordered)
/dev/sr0 on /target/media/cdrom type iso9660 (ro,relatime)
/var/run #

Revision history for this message
bugproxy (bugproxy) wrote : /var/log/messages from the guest

Default Comment by Bridge

tags: added: architecture-ppc64le bugnameltc-115262 severity-critical targetmilestone-inin---
Revision history for this message
bugproxy (bugproxy) wrote : dmesg log

Default Comment by Bridge

Revision history for this message
bugproxy (bugproxy) wrote : /var/log/media-info

Default Comment by Bridge

Revision history for this message
bugproxy (bugproxy) wrote : partman log

Default Comment by Bridge

Luciano Chavez (lnx1138)
affects: ubuntu → debian-installer (Ubuntu)
bugproxy (bugproxy)
tags: added: targetmilestone-inin1410
removed: targetmilestone-inin---
Revision history for this message
Anton Blanchard (anton-samba) wrote :

Setting up linux-image-3.16.0-10-generic (3.16.0-10.15) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.16.0-10-generic /boot/vmlinux-3.16.0-10-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.16.0-10-generic /boot/vmlinux-3.16.0-10-generic
update-initramfs: Generating /boot/initrd.img-3.16.0-10-generic
stdin: Illegal seek
mkinitramfs: for root missing /sys/block/ entry
mkinitramfs: workaround is MODULES=most
mkinitramfs: Error please report the bug

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2014-09-05 09:58 EDT-------
update-initramfs: Generating /boot/initrd.img-3.16.0-10-generic <----- We are in generate_initramfs()

so we are calling : mkinitramfs ${OPTS} "${initramfs}.new" "${version}"

stdin: Illegal seek <---- This is a strange message
mkinitramfs: for root missing /sys/block/ entry <--- these 2 messages are not in
mkinitramfs: workaround is MODULES=most default mkinitramfs

So I suspect another command called by mkinitramfs to fail.

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2014-09-17 14:57 EDT-------
Tried to reproduce problem with current installation ISO.
ubuntu@test:~$ uname -a
Linux test 3.16.0-14-generic #20-Ubuntu SMP Sat Sep 6 23:45:12 UTC 2014 ppc64le ppc64le ppc64le GNU/Linux

1) case of installation using LVM without creating /home yet during installation

=> no problem so far
and manually reproducing the supposed failing mkinitramfs using:
ubuntu@test:~$ sudo bash -x /etc/kernel/postinst.d/initramfs-tools 3.16.0-14-geeric /boot/vmlinux-3.16.0-14-generic > /tmp/L 2>&1
ubuntu@test:~$ cat /tmp/L
+ version=3.16.0-14-generic
+ bootopt=
+ '[' -z 3.16.0-14-generic ']'
+ '[' -n '' ']'
+ '[' -n /boot/vmlinux-3.16.0-14-generic ']'
++ dirname /boot/vmlinux-3.16.0-14-generic
+ bootdir=/boot
+ bootopt='-b /boot'
+ '[' -n '' ']'
+ INITRAMFS_TOOLS_KERNEL_HOOK=1
+ update-initramfs -c -t -k 3.16.0-14-generic -b /boot
update-initramfs: Generating /boot/initrd.img-3.16.0-14-generic

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2014-09-22 11:07 EDT-------
I tried the latest 14.10 build (Sept 22). With this build I am able to perform an LVM based installation.
This problem is fixed with latest build.

Changed in debian-installer (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.