[Bug 604335] Re: grub-pc.postinst script fails to detect virtio vda disk in KVM guest

nutznboltz 604335 at bugs.launchpad.net
Fri Jun 10 19:05:55 UTC 2011


Appears there are four different udev disk directories not three.

/dev/disk/by-id

/dev/disk/by-label

/dev/disk/by-path

/dev/disk/by-uuid

If you have only virtio disk (/dev/vda) then you will not have /dev/disk
/by-id

If you have only virtio disk (/dev/vda) plus a disk label you will have
/dev/disk/by-label and that is good enough for grub-pc wrt.
installing/updating.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/604335

Title:
  grub-pc.postinst script fails to detect virtio vda disk in KVM guest

Status in “grub2” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: grub-pc

  The grub-pc.postinst script fails to detect virtio "vda" disk in a KVM
  guest because it looks for entries in /dev/disk/by-id/* and there is
  absolutely no /dev/disk/by-id directory at all when the only disk is a
  vda virtio one.

  You can test this either by creating a new KVM VM guest running Ubuntu
  10.04 with only virtio vda disk or by converting an existing hda disk
  VM guest into a vda one and then trying to purge and re-install grub-
  pc.

  If the KVM VM guest running Ubuntu 10.04 is configured to boot from
  LVM this issue is not seen; the failure requires a guest with a bare
  /dev/vda disk.

  Applying the patch (attached) to grub-pc.postinst in the KVM VM guest
  allows you to install (or re-install) grub-pc; without it the grub-pc
  package will not configure.

  Patch is against grub-pc 1.98-1ubuntu6

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: grub-pc 1.98-1ubuntu6
  ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
  Uname: Linux 2.6.32-22-generic i686
  NonfreeKernelModules: nvidia
  Architecture: i386
  Date: Sun Jul 11 12:15:58 2010
  ProcEnviron:
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: grub2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/604335/+subscriptions




More information about the foundations-bugs mailing list