David Mohr <da...@mcbf.net> writes:
>> /usr/share/initramfs-tools/hooks:
>> bcache
>
> This file exists on your system and does install bcache.ko into the 
> initrd:
>
> % lsinitramfs /boot/initrd.img-3.16.0-4-amd64 | grep bcache
> lib/modules/3.16.0-4-amd64/kernel/drivers/md/bcache
> lib/modules/3.16.0-4-amd64/kernel/drivers/md/bcache/bcache.ko
> lib/modules/3.16.0-4-amd64/kernel/fs/mbcache.ko
> lib/udev/probe-bcache
> lib/udev/rules.d/69-bcache.rules
> lib/udev/bcache-register
>
> Maybe the initramfs somehow did not get updated on your system?

That does exist, and it appears to be doing its job, but it comes from
the bcache-tools package. That's not entirely what I'm talking about
though. I'm more concerned about an annoying bootstrap issue that I've
faced multiple times when installing Debian onto a bcache volume. Here's
what I currently have to do:

- Format as bcache using some live system

- Reboot into d-i.

- From within the debian installer, unpack bcache.ko out of the
  installer's kernel .deb, insmod it.

- Register the bcache, install to it.

- Reboot into the new system. Oops, boot fails, because there's no
  bcache.ko. Back to a live system, drop the right bcache.ko into /boot,
  reboot, insmod it, register the bcache, boot. (*)

- Then install bcache-tools, and things start looking up.

(*) This step is the most annoying, and what I'd like to see
fixed. Alternatively, if d-i understood that I'm installing onto bcache
and installed bcache-tools, my problem would also be solved...

Thanks for listening!
Andreas

Attachment: signature.asc
Description: PGP signature

Reply via email to