Your message dated Tue, 12 Jan 2016 15:08:34 +0000
with message-id <[email protected]>
and subject line Re: Bug#810808: initramfs-tools: lvm on NVMe boot drives 
brakes mkinitramfs
has caused the Debian Bug report #810808,
regarding initramfs-tools: lvm on NVMe boot drives brakes mkinitramfs
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
810808: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=810808
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: initramfs-tools
Version: 0.120
Severity: normal
Tags: d-i patch

Dear Maintainer,

while trying installing debian 8.2 onto a PCIe SSD (NVMe device) the
creation of the initrd is failing.

root@holodeck10:~# apt-get install -f.                                          
 
Reading package lists... Done                                                   
 
Building dependency tree.......                                                 
 
Reading state information... Done                                               
 
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.                  
 
3 not fully installed or removed.                                               
 
After this operation, 0 B of additional disk space will be used.                
 
Setting up linux-image-3.16.0-4-amd64 (3.16.7-ckt20-1+deb8u2) ...               
 
/etc/kernel/postinst.d/initramfs-tools:                                         
 
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64                    
 
mkinitramfs: for device /dev/dm-0 missing nvme /sys/block/ entry                
 
mkinitramfs: workaround is MODULES=most                                         
 
mkinitramfs: Error please report the bug                                        
 
update-initramfs: failed for /boot/initrd.img-3.16.0-4-amd64 with 1.            
 
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1     
 
Failed to process /etc/kernel/postinst.d at 
/var/lib/dpkg/info/linux-image-3.16.0-4-amd64.postinst line 634.
dpkg: error processing package linux-image-3.16.0-4-amd64 (--configure):        
 
 subprocess installed post-installation script returned error exit status 1     
 

i found the missing support in /usr/share/initramfs-tools/hook-functions

This patch fixes the problem:

--- /usr/share/initramfs-tools/hook-functions   2016-01-12 14:36:21.471588490 
+0100
+++ hook-functions.orig 2016-01-12 14:28:29.675566666 +0100                     
 
@@ -364,10 +364,9 @@                                                            
 
        if [ "${block#md}" != "${block}" ]; then                                
 
            block=$(sed -ne 's/multipath/[/' -e 's/linear/[/' -e 
's/raid[0-9][0-9]*/[/' -e 's/\([hs]d[a-z][a-z]*\)[0-9][0-9]*/\1/g' -e 
'/^'${block}'
:/s/^[^[]*\[ \([^\[]*\)\[.*$/\1/p' </proc/mdstat)
        fi                                                                      
 
-       # luks or lvm on cciss or ida or nvme                                   
 
+       # luks or lvm on cciss or ida                                           
 
        if [ "${block#cciss}" != "${block}" ] \                                 
 
-       || [ "${block#ida}" != "${block}" ] \                                   
 
-       || [ "${block#nvme}" != "${block}" ] ; then                             
 
+       || [ "${block#ida}" != "${block}" ]; then                               
 
            block="${block%p*}"                                                 
 
        else                                                                    
 
            block=${block%%[0-9]*}                                            

--- End Message ---
--- Begin Message ---
Version: 0.121~rc2

On Tue, 2016-01-12 at 14:52 +0100, Bjoern Laessig wrote:
> Package: initramfs-tools
> Version: 0.120
> Severity: normal
> Tags: d-i patch
> 
> Dear Maintainer,
> 
> while trying installing debian 8.2 onto a PCIe SSD (NVMe device) the
> creation of the initrd is failing.
> 
> root@holodeck10:~# apt-get install -f.                                        
>    
> Reading package lists... Done                                                 
>    
> Building dependency tree.......                                               
>    
> Reading state information... Done                                             
>    
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.                
>    
> 3 not fully installed or removed.                                             
>    
> After this operation, 0 B of additional disk space will be used.              
>    
> Setting up linux-image-3.16.0-4-amd64 (3.16.7-ckt20-1+deb8u2) ...             
>    
> /etc/kernel/postinst.d/initramfs-tools:                                       
>    
> update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64                  
>    
> mkinitramfs: for device /dev/dm-0 missing nvme /sys/block/ entry              
>    
> mkinitramfs: workaround is MODULES=most                                       
>    
[...]

You should change the configuration as recommended here - change
MODULES=dep to MODULES=most in /etc/initramfs-tools/initramfs.conf or
/etc/initramfs-tools/conf.d

This is properly fixed in version 0.121~rc2 and the fix might be
backported to Debian 8 later.

Ben.

-- 
Ben Hutchings
To err is human; to really foul things up requires a computer.

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

Reply via email to