Comment 9 for bug 1514094

Revision history for this message
Blake Rouse (blake-rouse) wrote :

Christian,

I will test your branch and provide an update. As for the grub install, grub should not be installed to the bcache device, it should be installed to the backing device. The backing device also requires that a partition table be on that backing device. All of this is handled in MAAS.

1. If you select the boot disk as the backing device MAAS will automatically create the partition table and partition and use the partition as the backing device. (This is because grub-install should be performed on /dev/sda instead of /dev/bcache0, and /dev/sda requires a partition table.)
2. MAAS will not allow you to deploy a node that has a bcache as the "/" unless you have a "/boot" on a none bcache device. This is because grub cannot load the kernel from a bcache backing device.

This is all handled in MAAS, and I don't think you need to handle the case for "grub-install /dev/bcache2" that just seems wrong as that should be performed on its backing devices. (eg. /dev/sda)