hartwork / image-bootstrap

:partly_sunny: Creates Linux chroots and bootable virtual machine images; command line tool (Python 3)
https://linuximages.de/
264 stars 39 forks source link

Seen failing to install Grub on with DRBD device on Debian jessie #25

Open hartwork opened 9 years ago

hartwork commented 9 years ago
..
Installing bootloader to device "/dev/drbd8" (approach "chroot-grub2-drive")...
# chroot /mnt/tmp96s8Lu grub-install \(hd9999\)
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/drbd8p1.  Check your device.map.
Auto-detection of a filesystem of /dev/mapper/drbd8p1 failed.
Try with --recheck.
..
hartwork commented 9 years ago

Note on a workaround:

dmsetup create ............... --table "0 $(blockdev --getsz /dev/drbd8) linear /dev/drbd8 0"