initramfs and bcache

I'm doing some testing with bcache on my Debian system, with the block devices layered like: sd[ab] md0 /boot (because grub doesn't understand bcache superblocks) md1 bcache lvm / And it almost works except that my bcache initramfs script runs after lvm. I told bcache to prereq on mdadm, so that much works, but unless I change the system provided lvm initramfs script, I can't get bcache to run before it, so I need to intervene at boot time to get it moving. Any suggestions? Thanks James

James Harper wrote:
I'm doing some testing with bcache on my Debian system, with the block devices layered like:
sd[ab] md0 /boot (because grub doesn't understand bcache superblocks) md1 bcache lvm /
And it almost works except that my bcache initramfs script runs after lvm. I told bcache to prereq on mdadm, so that much works, but unless I change the system provided lvm initramfs script, I can't get bcache to run before it, so I need to intervene at boot time to get it moving.
dpkg-divert the system-provided one away, and put your edited one in place. You'll need to manually merge in any updates when lvm is upgraded. Alternatively, you might be able to put the files in /etc/initramfs-tools/scripts and have them shadow out the ones in /usr/share/initramfs-tools/scripts, although you'd still have to deal with merging by hand.
participants (2)
-
James Harper
-
Trent W. Buck