[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#630107: [kfreebsd] cannot configure grub-pc (error: cannot find a GRUB drive for /dev/ad0s1)



Package: libgeom0
Version: 8.2-2
Severity: grave
Justification: cannot install grub-pc
Affects: grub-common

Hi,

Typical kfreebsd-amd64 experimental system (running through qemu).
Was upgrading today for the first time since 2011-05-06.  Previously I
had grub-pc 1.99~rc1-13 installed.  When it came to be time to upgrade
grub-pc, some warnings about camcontrol as usual, then a debconf
dialog about choosing between /dev/ad0 and /dev/ad0s1 if I remember it
correctly.  I choose /dev/ad0.  Then another debconf dialog about that
failing and whether I want to continue anyway.  I choose "No" and it
goes back in a loop.  (Wouldn't failing postinst at that point be
better, so the package manager can do its job by downgrading or trying
again at the next "dpkg --configure -a"?  Ah, now that I check, it
looks like that's what "Yes" to install_devices_failed does --- hmm.)

Lacking an escape route, I hit ^C, reconfigure debconf to use the
readline plugin, and ran "dpkg --configure -a" to try again.  Now:

 # dpkg --configure -a
 Setting up grub-pc (1.99-6) ...
 Generating grub.pc ...
 Found kernel of FreeBSD: /boot/kfreebsd-8.2-1-amd64.gz
 Found kernel module directory: /lib/modules/8.2-1-amd64
 /usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/ad0s1.  Check your device.map
 ls: cannot access /lib/modules/8.2-1-amd64/unknown.ko: No such file or directory

 dpkg: error processing grub-pc (--configure):
  subprocess installed post-installation script returned error exit status 2

Hmm, that's different.  Weird.

The device.map says:

 (hd0)	/dev/ad0

Removing grub-pc-bin and grub2-common and downgrading grub-pc and
grub-common to 1.99~rc1-13 still gives the "cannot find a GRUB drive
for /dev/ad0s1" error, without the "cannot access ...unknown.ko" one.

Based on a memory of Bug#612128, I try downgrading libgeom0 from
8.2-2 to 8.1-5.  That works.

Known problem?



Reply to: