[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#807004: initramfs-tools: Breaks when installing kdump-tools with bcache rootfs



Control: tag -1 moreinfo

On Thu, 03 Dec 2015 17:29:11 -0700 Neil Mayhew <neil_mayhew@sil.org> wrote:
> Package: initramfs-tools
> Version: 0.120
> Severity: important
> Tags: patch
> 
> I have /dev/bcache0 as my rootfs. When upgrading kdump-tools, the
> postinst fails because /etc/kernel/postinst.d/kdump-tools returns an
> error. When I run this manually, I get:
> 
> kdump-tools: Generating /var/lib/kdump/initrd.img-4.2.0-1-amd64
> mkinitramfs: for device /dev/bcache0 missing bcache /sys/block/ entry
> mkinitramfs: workaround is MODULES=most
> mkinitramfs: Error please report the bug
> 
> The "missing bcache /sys/block/ entry" message comes from
> dep_add_modules_mount in /usr/share/initramfs-tools/hook-functions
> 
> The problem is that the "classical block device" case strips the numeric
> suffix from the device name, but this is needed for the entry in
> /sys/block.
[...]

The code to convert to a whole-disk device name is really not necessary
as both whole-disk and partition devices can be looked up under
/sys/class/block.  I intend to remove it, making the special case for
bcache unnecessary.

However, I don't understand how this is sufficient to support bcache.
We still need to discover the underlying devices of the bcache device,
don't we?

Ben.

-- 
Ben Hutchings
Larkinson's Law: All laws are basically false.

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


Reply to: