On Sat, Oct 16, 2021 at 10:42:38PM +0200, Josip Rodin wrote: > Installing GRUB for BIOS > ERROR: Do not understand partition device name /dev/loop0p1 > ERROR: Exception('Do not understand partition device name /dev/loop0p1') > Something went wrong, cleaning up! > > I found in the code that I could override that in the grub plugin by > specifying: > > image-dev: "/dev/mapper/vg0-myvm--root" > > However, even this failed with: > > 2021-10-16 22:09:37 INFO Exec: ['chroot', '/tmp/tmpy9lcantw', 'grub-install', > '--target=i386-pc', '--no-nvram', '--force-extra-removable', '--no-floppy', > '--modules=part_msdos part_gpt', '--grub-mkdevicemap=/boot/grub/device.map', > '/dev/mapper/vg0-myvm--root'] > 2021-10-16 22:09:37 DEBUG STDOUT: > 2021-10-16 22:09:37 DEBUG STDERR: Installing for i386-pc platform. > grub-install: error: diskfilter writes are not supported. > > 2021-10-16 22:09:37 ERROR Program failed: 1
As it happens, this actually does work with: image-dev: "{{ image }}" The log then simply says: Exec: ['chroot', '/tmp/tmp65a32lou', 'grub-install', '--target=i386-pc', '--no-nvram', '--force-extra-removable', '--no-floppy', '--modules=part_msdos part_gpt', '--grub-mkdevicemap=/boot/grub/device.map', '/dev/loop0'] -- Josip Rodin