Comment #13 on issue 549 by [email protected]: ganeti-instance-debootstrap grub hook fails: "unable to resolve UUID", "could not find menu.lst"
http://code.google.com/p/ganeti/issues/detail?id=549

I ran into this exact issue, and decided to spend some time to fix it. I created a hook script that works for me(TM) using drbd and lvm. There are several issues/quirks to 'fake' everything such that grub works in a chroot:

- For drbd, grub-2.00 is needed from testing, this is installed by this script. For lvm, it is assumed that grub is available (put it in your EXTRA_PKGS in /etc/default/ganeti-instance-debootstrap). - There is no symlink created under $TARGET/dev/disk/by-uuid, this causes grub to use the device name in the kernel boot arguments instead of the uuid - LVM needs a loop device, otherwise grub thinks we're installing to a partition - For LVM, the create scripts mount /dev/<vgname>/<lvname>, but for some reason grub looks in device.map for /dev/mapper/<vgname>-<mangled-lvname> ... - Two runs of grub-install are needed, the first one installs serial.mod, then the serial port can be added to the config, and then we run again

Attachments:
        grub-hook  2.7 KB

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

Reply via email to