Bug#614295: grub-pc: kFreeBSD upgrade fails: cannot find a GRUB drive for /dev/ad0s1

Gonéri Le Bouder goneri at rulezlan.org
Sun Feb 20 21:29:35 UTC 2011


Package: grub-pc
Version: 1.99~rc1-3
Severity: important

Hi,

The upgrade to the last package fails on kFreeBSD.

Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
The following partially installed packages will be configured:
  grub-pc kfreebsd-image-8-amd64 kfreebsd-image-8.2-1-amd64 
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up grub-pc (1.99~rc1-3) ...
camcontrol: cam_lookup_pass: CAMGETPASSTHRU ioctl failed
cam_lookup_pass: No such file or directory
cam_lookup_pass: either the pass driver isn't in your kernel
cam_lookup_pass: or ad0 doesn't exist
camcontrol: cam_lookup_pass: CAMGETPASSTHRU ioctl failed
cam_lookup_pass: No such file or directory
cam_lookup_pass: either the pass driver isn't in your kernel
cam_lookup_pass: or ad0 doesn't exist
camcontrol: cam_lookup_pass: CAMGETPASSTHRU ioctl failed
cam_lookup_pass: No such file or directory
cam_lookup_pass: either the pass driver isn't in your kernel
cam_lookup_pass: or ad0 doesn't exist
camcontrol: cam_lookup_pass: CAMGETPASSTHRU ioctl failed
cam_lookup_pass: No such file or directory
cam_lookup_pass: either the pass driver isn't in your kernel
cam_lookup_pass: or ad0 doesn't exist
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/ad0s1.  Check your device.map.
Auto-detection of a filesystem of /dev/ad0s1 failed.
Please report this together with the output of "/usr/sbin/grub-probe --device-map="/boot/grub/device.map" --target=fs -v /boot/grub" to <bug-grub at gnu.org>
Generating grub.cfg ...
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/ad0s1.  Check your device.map.
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Setting up kfreebsd-image-8.2-1-amd64 (8.2-1) ...
run-parts: executing /etc/kernel/postinst.d/update-notifier 8.2-1-amd64 /boot/kfreebsd-8.2-1-amd64.gz
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 8.2-1-amd64 /boot/kfreebsd-8.2-1-amd64.gz
Generating grub.cfg ...
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/ad0s1.  Check your device.map.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: error processing kfreebsd-image-8.2-1-amd64 (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
dpkg: dependency problems prevent configuration of kfreebsd-image-8-amd64:
 kfreebsd-image-8-amd64 depends on kfreebsd-image-8.2-1-amd64; however:
  Package kfreebsd-image-8.2-1-amd64 is not configured yet.
dpkg: error processing kfreebsd-image-8-amd64 (--configure):
 dependency problems - leaving unconfigured
configured to not write apport reports
Errors were encountered while processing:
 grub-pc
 kfreebsd-image-8.2-1-amd64
 kfreebsd-image-8-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up kfreebsd-image-8.2-1-amd64 (8.2-1) ...
run-parts: executing /etc/kernel/postinst.d/update-notifier 8.2-1-amd64 /boot/kfreebsd-8.2-1-amd64.gz
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 8.2-1-amd64 /boot/kfreebsd-8.2-1-amd64.gz
Generating grub.cfg ...
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/ad0s1.  Check your device.map.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: error processing kfreebsd-image-8.2-1-amd64 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of kfreebsd-image-8-amd64:
 kfreebsd-image-8-amd64 depends on kfreebsd-image-8.2-1-amd64; however:
  Package kfreebsd-image-8.2-1-amd64 is not configured yet.
dpkg: error processing kfreebsd-image-8-amd64 (--configure):
 dependency problems - leaving unconfigured
Setting up grub-pc (1.99~rc1-3) ...
camcontrol: cam_lookup_pass: CAMGETPASSTHRU ioctl failed
cam_lookup_pass: No such file or directory
cam_lookup_pass: either the pass driver isn't in your kernel
cam_lookup_pass: or ad0 doesn't exist
camcontrol: cam_lookup_pass: CAMGETPASSTHRU ioctl failed
cam_lookup_pass: No such file or directory
cam_lookup_pass: either the pass driver isn't in your kernel
cam_lookup_pass: or ad0 doesn't exist
camcontrol: cam_lookup_pass: CAMGETPASSTHRU ioctl failed
cam_lookup_pass: No such file or directory
cam_lookup_pass: either the pass driver isn't in your kernel
cam_lookup_pass: or ad0 doesn't exist
camcontrol: cam_lookup_pass: CAMGETPASSTHRU ioctl failed
cam_lookup_pass: No such file or directory
cam_lookup_pass: either the pass driver isn't in your kernel
cam_lookup_pass: or ad0 doesn't exist
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/ad0s1.  Check your device.map.
Auto-detection of a filesystem of /dev/ad0s1 failed.
Please report this together with the output of "/usr/sbin/grub-probe --device-map="/boot/grub/device.map" --target=fs -v /boot/grub" to <bug-grub at gnu.org>
Generating grub.cfg ...
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/ad0s1.  Check your device.map.
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 kfreebsd-image-8.2-1-amd64
 kfreebsd-image-8-amd64
 grub-pc
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/ad0s1 / ufs rw 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/ad0
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ufs2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 4b52ed8652af2de1
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ufs2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 4b52ed8652af2de1
set locale_dir=($root)/boot/grub/locale
set lang=fr
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ufs2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 4b52ed8652af2de1
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
  set color_normal=light-gray/black
  set color_highlight=white/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_kfreebsd ###
menuentry 'Debian GNU/kFreeBSD, avec kFreeBSD 8.1-1-amd64' --class debian --class gnu-kfreebsd --class gnu --class os {
	insmod part_msdos
	insmod ufs2
	set root='(hd0,1)'
	search --no-floppy --fs-uuid --set 4b52ed8652af2de1
	echo			'Chargement du noyau FreeBSD 8.1-1-amd64 ...'
	kfreebsd		/boot/kfreebsd-8.1-1-amd64.gz
	set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ad0s1
	set kFreeBSD.vfs.root.mountfrom.options=rw
}
menuentry 'Debian GNU/kFreeBSD, avec kFreeBSD 7.3-1-amd64' --class debian --class gnu-kfreebsd --class gnu --class os {
	insmod part_msdos
	insmod ufs2
	set root='(hd0,1)'
	search --no-floppy --fs-uuid --set 4b52ed8652af2de1
	echo			'Chargement du noyau FreeBSD 7.3-1-amd64 ...'
	kfreebsd		/boot/kfreebsd-7.3-1-amd64.gz
	set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ad0s1
	set kFreeBSD.vfs.root.mountfrom.options=rw
}
menuentry 'Debian GNU/kFreeBSD, avec kFreeBSD 7.2-1-amd64' --class debian --class gnu-kfreebsd --class gnu --class os {
	insmod part_msdos
	insmod ufs2
	set root='(hd0,1)'
	search --no-floppy --fs-uuid --set 4b52ed8652af2de1
	echo			'Chargement du noyau FreeBSD 7.2-1-amd64 ...'
	kfreebsd		/boot/kfreebsd-7.2-1-amd64.gz
	set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ad0s1
	set kFreeBSD.vfs.root.mountfrom.options=rw
}
### END /etc/grub.d/10_kfreebsd ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod part_msdos
	insmod ufs2
	set root='(hd0,1)'
	search --no-floppy --fs-uuid --set 4b52ed8652af2de1
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_msdos
	insmod ufs2
	set root='(hd0,1)'
	search --no-floppy --fs-uuid --set 4b52ed8652af2de1
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
	insmod part_msdos
	insmod ufs2
	set root='(hd0,1)'
	search --no-floppy --fs-uuid --set 4b52ed8652af2de1
	multiboot	/boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
	insmod part_msdos
	insmod ufs2
	set root='(hd0,1)'
	search --no-floppy --fs-uuid --set 4b52ed8652af2de1
	multiboot	/boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]        1.5.38      Debian configuration management sy
ii  freebsd-utils                8.1-4+b1    FreeBSD utilities needed for GNU/k
ii  grub-common                  1.99~rc1-3  GRand Unified Bootloader, version 
ii  libc0.1                      2.11.2-11   Embedded GNU C Library: Shared lib
ii  libnvpair0                   8.1-4       OpenSolaris name-value pair librar
ii  libzfs0                      8.1-4       FreeBSD ZFS library
ii  ucf                          3.0025+nmu1 Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
ii  desktop-base                  6.0.6      common files for the Debian Deskto

-- debconf information:
  grub-pc/kopt_extracted: false
  grub2/kfreebsd_cmdline:
  grub2/device_map_regenerated:
* grub-pc/install_devices: /dev/ad0
  grub-pc/postrm_purge_boot_grub: false
  grub-pc/install_devices_failed_upgrade: true
  grub-pc/disk_description:
* grub2/linux_cmdline:
  grub-pc/install_devices_empty: false
  grub2/kfreebsd_cmdline_default: quiet
  grub-pc/partition_description:
  grub-pc/install_devices_failed: true
* grub-pc/install_devices_disks_changed: /dev/ad0
* grub2/linux_cmdline_default: quiet
  grub-pc/chainload_from_menu.lst: true
  grub-pc/mixed_legacy_and_grub2: true
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20110220/7d661e3b/attachment.pgp>


More information about the Pkg-grub-devel mailing list