I am running a series of debian server VMs under Xen. I am using pygrub, so the kernels and initrds are within the VM itself.
I would like to continue using the automatic grub.cfg generation provided through kernel updates that debian does, however I need to tweak it so that it doesn't attempt to install the grub img into the boot sector. All I need it to do is generate the grub.cfg, and not attempt to install the boot loader.
When it does attempt to install grub.img, it fails because there isn't way for it to do this, and so it becomes an unresolvable apt error. This is because the partitions defined in the VM are themselves LVM volumes, so there isn't a boot sector as such:
There doesn't seem to be an option available in /etc/default/grub to switch off grub-install?