diff -Nru initramfs-tools-0.103ubuntu4.10/debian/changelog initramfs-tools-0.103ubuntu4.11/debian/changelog --- initramfs-tools-0.103ubuntu4.10/debian/changelog 2017-12-05 19:29:04.000000000 +0000 +++ initramfs-tools-0.103ubuntu4.11/debian/changelog 2018-05-16 12:47:01.000000000 +0000 @@ -1,3 +1,9 @@ +initramfs-tools (0.103ubuntu4.11) trusty; urgency=medium + + * hook-functions: handle md arrays with nvme disk members. (LP: #1771557) + + -- Guilherme G. Piccoli Wed, 16 May 2018 09:47:01 -0300 + initramfs-tools (0.103ubuntu4.10) trusty; urgency=medium * mkinitramfs: Delete or report temporary files in /var/tmp/ on failure. diff -Nru initramfs-tools-0.103ubuntu4.10/hook-functions initramfs-tools-0.103ubuntu4.11/hook-functions --- initramfs-tools-0.103ubuntu4.10/hook-functions 2017-08-30 10:10:40.000000000 +0000 +++ initramfs-tools-0.103ubuntu4.11/hook-functions 2018-05-16 12:47:01.000000000 +0000 @@ -321,17 +321,17 @@ root=${root#/dev/md/} # strip partion number root=${root%%p[0-9]*} - # drop the partition number only for sdX and hdX devices + # drop the partition number for sdX, hdX and nvmeXnYpZ devices # and keep it for other devices like loop#, dm-# devices - 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 '/^md'$root' :/s/^[^[]*\[ \([^\[]*\)\[.*$/\1/p'