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

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



On Sun, 2015-12-06 at 08:28 -0700, Neil Mayhew wrote:
> On 05/12/15 10:13 PM, Ben Hutchings wrote:
> > We still need to discover the underlying devices of the bcache device, 
> > don't we? 
> 
> Technically, yes, although in my case the underlying device is a normal 
> sata disk and seems to have its module included anyway. Also, the bcache 
> module itself is included because I have to put it in 
> /etc/initramfs-tools/modules in order to be able to boot at all. I've 
> had successful crashdumps in the past, since I've been using bcache, but 
> I guess I should force one now to see if it still works.
> 
> The generated initrd contains the following modules:
> 
> kernel/crypto/async_tx/async_raid6_recov.ko
> kernel/crypto/async_tx/async_xor.ko
> kernel/crypto/async_tx/async_memcpy.ko
> kernel/crypto/async_tx/async_tx.ko
> kernel/crypto/async_tx/async_pq.ko
> kernel/crypto/xor.ko
> kernel/fs/jbd2/jbd2.ko
> kernel/fs/fuse/fuse.ko
> kernel/fs/mbcache.ko
> kernel/fs/ext4/ext4.ko
> kernel/drivers/md/dm-snapshot.ko
> kernel/drivers/md/dm-raid.ko
> kernel/drivers/md/md-mod.ko
> kernel/drivers/md/bcache/bcache.ko
> kernel/drivers/md/dm-mirror.ko
> kernel/drivers/md/dm-mod.ko
> kernel/drivers/md/dm-region-hash.ko
> kernel/drivers/md/raid456.ko
> kernel/drivers/md/dm-log.ko
> kernel/drivers/md/dm-bufio.ko
> kernel/drivers/scsi/sd_mod.ko
> kernel/drivers/scsi/scsi_mod.ko
> kernel/drivers/acpi/fan.ko
> kernel/drivers/acpi/thermal.ko
> kernel/drivers/thermal/thermal_sys.ko
> kernel/lib/raid6/raid6_pq.ko
> kernel/lib/crc16.ko
> 
> In particular, it has sd_mod.ko which is the one referenced via by 
> /sys/block/sda/device/driver/module/

sd_mod is just a generic SCSI disk driver.  I don't see any driver in
there for the underlying host adapter (SCSI, ATA, or whatever).
So I don't think that kdump initramfs can work.  Have you tried it?

> As you're probably aware, /sys/block/bcache0/device doesn't exist, and 
> /sys/block/bcache0/ is a symlink to /sys/devices/virtual/block/bcache0

No, I don't know.  Does /sys/class/block/bcache0 contain references to
the underlying devices it uses?

> However, the main point of my patch is get past the serious problem of 
> an error in the kdump-tools postinst that wedges apt.

Ben.

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

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


Reply to: