Bug#768510: grub-common: grub-probe doesn't detect abstraction for bcache devices
Neil Mayhew
neil_mayhew at sil.org
Sat Nov 8 00:08:00 UTC 2014
Package: grub-common
Version: 2.02~beta2-15
Severity: normal
I have /dev/bcache0 mounted on / and
sudo /usr/sbin/grub-probe -t abstraction /usr/share/
outputs nothing.
The only problem I've found with this so far is that the logic for setting a
background image doesn't work properly, because is_path_readable_by_grub
returns true instead of false and so set_background_image doesn't copy the
image to $BACKGROUND_CACHE.
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/8e8ffc83-7eb2-4f54-8119-aafad05e1921 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda3 /boot ext4 rw,relatime,errors=remount-ro,stripe=4,data=ordered 0 0
/dev/sda1 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro 0 0
/dev/sr0 /media/cdrom0 iso9660 ro,nosuid,nodev,noexec,relatime 0 0
*********************** END /proc/mounts
*********************** 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
set have_grubenv=true
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
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 {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 8e8ffc83-7eb2-4f54-8119-aafad05e1921
else
search --no-floppy --fs-uuid --set=root 8e8ffc83-7eb2-4f54-8119-aafad05e1921
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_CA
insmod gettext
fi
terminal_output gfxterm
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 8e8ffc83-7eb2-4f54-8119-aafad05e1921
else
search --no-floppy --fs-uuid --set=root 8e8ffc83-7eb2-4f54-8119-aafad05e1921
fi
insmod tga
background_image -m stretch /usr/share/images/grub/Apollo_17_The_Last_Moon_Shot_Edit1.tga
if [ "${recordfail}" = 1 ] ; then
set timeout=-1
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 8e8ffc83-7eb2-4f54-8119-aafad05e1921
else
search --no-floppy --fs-uuid --set=root 8e8ffc83-7eb2-4f54-8119-aafad05e1921
fi
insmod tga
if background_image /usr/share/images/grub/Apollo_17_The_Last_Moon_Shot_Edit1.tga; then
true
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_linux ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-8e8ffc83-7eb2-4f54-8119-aafad05e1921' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 b7dc47ae-59d5-4ee1-9095-35a697f61996
else
search --no-floppy --fs-uuid --set=root b7dc47ae-59d5-4ee1-9095-35a697f61996
fi
echo 'Loading Linux 3.16-3-amd64 ...'
linux /vmlinuz-3.16-3-amd64 root=UUID=8e8ffc83-7eb2-4f54-8119-aafad05e1921 ro crashkernel=256M quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-3.16-3-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-8e8ffc83-7eb2-4f54-8119-aafad05e1921' {
menuentry 'Debian GNU/Linux, with Linux 3.16-3-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16-3-amd64-advanced-8e8ffc83-7eb2-4f54-8119-aafad05e1921' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 b7dc47ae-59d5-4ee1-9095-35a697f61996
else
search --no-floppy --fs-uuid --set=root b7dc47ae-59d5-4ee1-9095-35a697f61996
fi
echo 'Loading Linux 3.16-3-amd64 ...'
linux /vmlinuz-3.16-3-amd64 root=UUID=8e8ffc83-7eb2-4f54-8119-aafad05e1921 ro crashkernel=256M quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-3.16-3-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.16-3-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16-3-amd64-recovery-8e8ffc83-7eb2-4f54-8119-aafad05e1921' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 b7dc47ae-59d5-4ee1-9095-35a697f61996
else
search --no-floppy --fs-uuid --set=root b7dc47ae-59d5-4ee1-9095-35a697f61996
fi
echo 'Loading Linux 3.16-3-amd64 ...'
linux /vmlinuz-3.16-3-amd64 root=UUID=8e8ffc83-7eb2-4f54-8119-aafad05e1921 ro single crashkernel=256M
echo 'Loading initial ramdisk ...'
initrd /initrd.img-3.16-3-amd64
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###
### 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 ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg
*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat
*********************** BEGIN LVM
*********************** END LVM
*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 9 Nov 7 12:41 ata-ASUS_DRW-24F1ST_b_E4D0CL036452 -> ../../sr0
lrwxrwxrwx 1 root root 9 Nov 7 12:41 ata-M4-CT512M4SSD2_0000000012310911AD16 -> ../../sdb
lrwxrwxrwx 1 root root 9 Nov 7 12:41 ata-ST1000DM003-1CH162_Z1DBW60B -> ../../sda
lrwxrwxrwx 1 root root 10 Nov 7 12:41 ata-ST1000DM003-1CH162_Z1DBW60B-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov 7 12:41 ata-ST1000DM003-1CH162_Z1DBW60B-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov 7 12:41 ata-ST1000DM003-1CH162_Z1DBW60B-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Nov 7 12:41 ata-ST1000DM003-1CH162_Z1DBW60B-part4 -> ../../sda4
lrwxrwxrwx 1 root root 9 Nov 7 12:41 usb-Generic-_Compact_Flash_058F63646476-0:1 -> ../../sdd
lrwxrwxrwx 1 root root 9 Nov 7 12:41 usb-Generic-_MS_MS-Pro_058F63646476-0:3 -> ../../sdf
lrwxrwxrwx 1 root root 9 Nov 7 12:41 usb-Generic-_SD_MMC_058F63646476-0:0 -> ../../sdc
lrwxrwxrwx 1 root root 9 Nov 7 12:41 usb-Generic-_SM_xD-Picture_058F63646476-0:2 -> ../../sde
lrwxrwxrwx 1 root root 9 Nov 7 12:41 usb-SanDisk_CF_SDDR-289_51150007576-0:3 -> ../../sdj
lrwxrwxrwx 1 root root 9 Nov 7 12:41 usb-SanDisk_MS_SDDR-289_51150007576-0:1 -> ../../sdh
lrwxrwxrwx 1 root root 9 Nov 7 12:41 usb-SanDisk_SD_SDDR-289_51150007576-0:2 -> ../../sdi
lrwxrwxrwx 1 root root 9 Nov 7 12:41 usb-SanDisk_uSD_SDDR-289_51150007576-0:0 -> ../../sdg
lrwxrwxrwx 1 root root 9 Nov 7 12:41 wwn-0x5000c5006707e200 -> ../../sda
lrwxrwxrwx 1 root root 10 Nov 7 12:41 wwn-0x5000c5006707e200-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov 7 12:41 wwn-0x5000c5006707e200-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov 7 12:41 wwn-0x5000c5006707e200-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Nov 7 12:41 wwn-0x5000c5006707e200-part4 -> ../../sda4
lrwxrwxrwx 1 root root 9 Nov 7 12:41 wwn-0x500a07510911ad16 -> ../../sdb
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 9 Nov 7 12:41 2014-05-16-14-58-33-00 -> ../../sr0
lrwxrwxrwx 1 root root 10 Nov 7 12:41 3923-6CCE -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov 7 12:41 752ca093-5231-4349-afc1-e63c1b549954 -> ../../sda4
lrwxrwxrwx 1 root root 9 Nov 7 12:41 8808d1bc-4260-4875-b671-818addd058ad -> ../../sdb
lrwxrwxrwx 1 root root 13 Nov 7 12:41 8e8ffc83-7eb2-4f54-8119-aafad05e1921 -> ../../bcache0
lrwxrwxrwx 1 root root 10 Nov 7 12:41 9420ee8b-3cff-49d1-a92f-f1a784152f6b -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov 7 12:41 b7dc47ae-59d5-4ee1-9095-35a697f61996 -> ../../sda3
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (700, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_CA.utf8, LC_CTYPE=en_CA.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages grub-common depends on:
ii gettext-base 0.19.3-1
ii libc6 2.19-12
ii libdevmapper1.02.1 2:1.02.90-2
ii libfreetype6 2.5.2-2
ii libfuse2 2.9.3-15
ii liblzma5 5.1.1alpha+20120614-2
ii libpng12-0 1.2.50-2
ii zlib1g 1:1.2.8.dfsg-2
Versions of packages grub-common recommends:
ii os-prober 1.64
Versions of packages grub-common suggests:
ii console-setup 1.113
ii desktop-base 7.0.3
pn grub-emu <none>
pn multiboot-doc <none>
pn xorriso <none>
-- no debconf information
More information about the Pkg-grub-devel
mailing list