Package: grub-common
Version: 2.02~beta2-36
Severity: important

Dear Maintainer,


  * The current grub package needs an additional patch from ubuntu to support
booting from zfs root.
  * Also the kernel option boot=zfs is required for root on zfs



-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/sda2 /boot/grub ext3 rw,relatime,data=ordered 0 0
/dev/sdc1 /mnt/boot/grub ext3 rw,relatime,data=ordered 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 part_msdos
insmod zfs
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 
--hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  265bc91cef78741b
else
  search --no-floppy --fs-uuid --set=root 265bc91cef78741b
fi
    font="/ROOT/jessie@/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=de_DE
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
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 part_msdos
insmod zfs
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 
--hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  265bc91cef78741b
else
  search --no-floppy --fs-uuid --set=root 265bc91cef78741b
fi
insmod png
if background_image /ROOT/jessie@/usr/share/images/desktop-base/lines-grub.png; 
then
  set color_normal=white/black
  set color_highlight=black/white
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-265bc91cef78741b' {
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod zfs
        set root='hd0,msdos3'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 
--hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  265bc91cef78741b
        else
          search --no-floppy --fs-uuid --set=root 265bc91cef78741b
        fi
        echo    'Linux 4.7.0-0.bpo.1-amd64 wird geladen …'
        linux   /ROOT/jessie@/boot/vmlinuz-4.7.0-0.bpo.1-amd64 
root=ZFS=rpool/ROOT/jessie ro boot=zfs  quiet
        echo    'Initiale Ramdisk wird geladen …'
        initrd  /ROOT/jessie@/boot/initrd.img-4.7.0-0.bpo.1-amd64
}
submenu 'Erweiterte Optionen für Debian GNU/Linux' $menuentry_id_option 
'gnulinux-advanced-265bc91cef78741b' {
        menuentry 'Debian GNU/Linux, mit Linux 4.7.0-0.bpo.1-amd64' --class 
debian --class gnu-linux --class gnu --class os $menuentry_id_option 
'gnulinux-4.7.0-0.bpo.1-amd64-advanced-265bc91cef78741b' {
                load_video
                insmod gzio
                if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; 
fi
                insmod part_msdos
                insmod zfs
                set root='hd0,msdos3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root 
--hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  
265bc91cef78741b
                else
                  search --no-floppy --fs-uuid --set=root 265bc91cef78741b
                fi
                echo    'Linux 4.7.0-0.bpo.1-amd64 wird geladen …'
                linux   /ROOT/jessie@/boot/vmlinuz-4.7.0-0.bpo.1-amd64 
root=ZFS=rpool/ROOT/jessie ro boot=zfs  quiet
                echo    'Initiale Ramdisk wird geladen …'
                initrd  /ROOT/jessie@/boot/initrd.img-4.7.0-0.bpo.1-amd64
        }
        menuentry 'Debian GNU/Linux, with Linux 4.7.0-0.bpo.1-amd64 (recovery 
mode)' --class debian --class gnu-linux --class gnu --class os 
$menuentry_id_option 'gnulinux-4.7.0-0.bpo.1-amd64-recovery-265bc91cef78741b' {
                load_video
                insmod gzio
                if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; 
fi
                insmod part_msdos
                insmod zfs
                set root='hd0,msdos3'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root 
--hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  
265bc91cef78741b
                else
                  search --no-floppy --fs-uuid --set=root 265bc91cef78741b
                fi
                echo    'Linux 4.7.0-0.bpo.1-amd64 wird geladen …'
                linux   /ROOT/jessie@/boot/vmlinuz-4.7.0-0.bpo.1-amd64 
root=ZFS=rpool/ROOT/jessie ro single boot=zfs 
                echo    'Initiale Ramdisk wird geladen …'
                initrd  /ROOT/jessie@/boot/initrd.img-4.7.0-0.bpo.1-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 ###
menuentry 'Windows 7 (loader) (auf /dev/sda1)' --class windows --class os 
$menuentry_id_option 'osprober-chain-E8E46690E46660B4' {
        insmod part_msdos
        insmod ntfs
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 
--hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  E8E46690E46660B4
        else
          search --no-floppy --fs-uuid --set=root E8E46690E46660B4
        fi
        parttool ${root} hidden-
        chainloader +1
}
menuentry 'Windows Recovery Environment (loader) (auf /dev/sdd1)' --class 
windows --class os $menuentry_id_option 'osprober-chain-E024822B248204AE' {
        insmod part_msdos
        insmod ntfs
        set root='hd3,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos1 
--hint-efi=hd3,msdos1 --hint-baremetal=ahci3,msdos1  E024822B248204AE
        else
          search --no-floppy --fs-uuid --set=root E024822B248204AE
        fi
        parttool ${root} hidden-
        drivemap -s (hd0) ${root}
        chainloader +1
}

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

### BEGIN /etc/grub.d/30_uefi-firmware ###
### 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 /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Oct 16 21:21 
ata-KINGSTON_SMS200S330G_50026B726803ABEA -> ../../sdc
lrwxrwxrwx 1 root root 10 Oct 16 21:21 
ata-KINGSTON_SMS200S330G_50026B726803ABEA-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Oct 16 21:21 
ata-KINGSTON_SMS200S330G_50026B726803ABEA-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Oct 16 21:21 
ata-KINGSTON_SMS200S330G_50026B726803ABEA-part3 -> ../../sdc3
lrwxrwxrwx 1 root root  9 Oct 16 21:56 
ata-ST1000LM024_HN-M101MBB_S2U5J9ECB16965 -> ../../sdb
lrwxrwxrwx 1 root root 10 Oct 16 21:56 
ata-ST1000LM024_HN-M101MBB_S2U5J9ECB16965-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Oct 16 21:56 
ata-ST1000LM024_HN-M101MBB_S2U5J9ECB16965-part2 -> ../../sdb2
lrwxrwxrwx 1 root root  9 Oct 16 21:56 
ata-Samsung_SSD_840_Series_S19HNSAD650570A -> ../../sda
lrwxrwxrwx 1 root root 10 Oct 16 21:56 
ata-Samsung_SSD_840_Series_S19HNSAD650570A-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct 16 21:56 
ata-Samsung_SSD_840_Series_S19HNSAD650570A-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Oct 16 21:56 
ata-Samsung_SSD_840_Series_S19HNSAD650570A-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Oct 16 21:56 
ata-Samsung_SSD_840_Series_S19HNSAD650570A-part4 -> ../../sda4
lrwxrwxrwx 1 root root  9 Oct 16 21:56 
usb-Generic_STORAGE_DEVICE_000000000542-0:0 -> ../../sdd
lrwxrwxrwx 1 root root  9 Oct 16 21:56 wwn-0x50004cf208d4ab18 -> ../../sdb
lrwxrwxrwx 1 root root 10 Oct 16 21:56 wwn-0x50004cf208d4ab18-part1 -> 
../../sdb1
lrwxrwxrwx 1 root root 10 Oct 16 21:56 wwn-0x50004cf208d4ab18-part2 -> 
../../sdb2
lrwxrwxrwx 1 root root  9 Oct 16 21:56 wwn-0x50025385a0059cb6 -> ../../sda
lrwxrwxrwx 1 root root 10 Oct 16 21:56 wwn-0x50025385a0059cb6-part1 -> 
../../sda1
lrwxrwxrwx 1 root root 10 Oct 16 21:56 wwn-0x50025385a0059cb6-part2 -> 
../../sda2
lrwxrwxrwx 1 root root 10 Oct 16 21:56 wwn-0x50025385a0059cb6-part3 -> 
../../sda3
lrwxrwxrwx 1 root root 10 Oct 16 21:56 wwn-0x50025385a0059cb6-part4 -> 
../../sda4
lrwxrwxrwx 1 root root  9 Oct 16 21:21 wwn-0x50026b726803abea -> ../../sdc
lrwxrwxrwx 1 root root 10 Oct 16 21:21 wwn-0x50026b726803abea-part1 -> 
../../sdc1
lrwxrwxrwx 1 root root 10 Oct 16 21:21 wwn-0x50026b726803abea-part2 -> 
../../sdc2
lrwxrwxrwx 1 root root 10 Oct 16 21:21 wwn-0x50026b726803abea-part3 -> 
../../sdc3
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Oct 16 21:21 053a2849-f711-4f29-bc6f-72c94050bb51 -> 
../../sdc3
lrwxrwxrwx 1 root root 10 Oct 16 21:56 102669A426698B92 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Oct 16 21:56 235b2d91-250e-4f92-a677-2b6d06b29f60 -> 
../../sda2
lrwxrwxrwx 1 root root 10 Oct 16 21:56 265e0223-e863-44a5-aeca-0c9f08bcfe65 -> 
../../sda4
lrwxrwxrwx 1 root root 10 Oct 16 21:56 E8E46690E46660B4 -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct 16 21:21 b1f52da1-a13d-4857-8911-2ca8d11213a7 -> 
../../sdc1
lrwxrwxrwx 1 root root 10 Oct 16 21:56 e5855e86-163e-4f74-ad76-6d1005ed7384 -> 
../../sdb1
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: 8.6
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0-0.bpo.1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages grub-common depends on:
ii  gettext-base        0.19.3-2
ii  libc6               2.19-18+deb8u6
ii  libdevmapper1.02.1  2:1.02.90-2.2+deb8u1
ii  libfreetype6        2.5.2-3+deb8u1
ii  libfuse2            2.9.3-15+deb8u2
ii  liblzma5            5.1.1alpha+20120614-2+b3
ii  libpng12-0          1.2.50-2+deb8u2
ii  zlib1g              1:1.2.8.dfsg-2+b1

Versions of packages grub-common recommends:
ii  os-prober  1.65

Versions of packages grub-common suggests:
ii  console-setup  1.123
ii  desktop-base   8.0.2
pn  grub-emu       <none>
pn  multiboot-doc  <none>
ii  xorriso        1.3.2-1.1

-- Configuration Files:
/etc/grub.d/10_linux changed [not included]

-- no debconf information
Description: zfs-initramfs currently provides extraneous, undesired symlinks to
  devices directly underneath /dev/ to satisfy zpool's historical output of
  unqualified device names. By including this environment variable to signal
  our intent to zpool, zfs-linux packages can drop the symlink behavior when
  updating to its upstream or backported output behavior.
Author: Chad MILLER <chad.mil...@canonical.com>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1527727
Bug: https://savannah.gnu.org/bugs/?43653

--- a/grub-core/osdep/unix/getroot.c
+++ b/grub-core/osdep/unix/getroot.c
@@ -243,6 +243,7 @@ grub_util_find_root_devices_from_poolnam
   argv[2] = poolname;
   argv[3] = NULL;
 
+  setenv("ZPOOL_VDEV_NAME_PATH", "YES", 1);
   pid = grub_util_exec_pipe (argv, &fd);
   if (!pid)
     return NULL;

Reply via email to