zfsonlinux / pkg-zfs

Native ZFS packaging for Debian and Ubuntu
https://launchpad.net/~zfs-native/+archive/daily
308 stars 55 forks source link

grub 2.02-beta2.9-ZOL11-7aa9f6 breaks boot with pvgrub #164

Closed HRio closed 6 years ago

HRio commented 8 years ago

Booting a system with pvgrub does not work after the grub-xen upgrade to 2.02-beta2.9-ZOL11-7aa9f6 from http://archive.zfsonlinux.org/debian.

I am running Jessie in both the dom0 and in the domU that is acting as a XEN storage driver domain running ZoL. Note that it is only in the domU running ZoL that I have http://archive.zfsonlinux.org/debian in sources.list not in the dom0.

After booting the domU with pygrub instead of pvgrub and downgrading grub again

apt-get install grub-xen=2.02~beta2-22 grub-common=2.02~beta2-22 grub2-common=2.02~beta2-22 grub-xen-bin=2.02~beta2-22

the domU boots fine with pvgrub.

This is the diff between the grub.cfg from 2.02-beta2.9-ZOL11-7aa9f6 and 2.02~beta2-22

--- grub-zol/grub.cfg   2015-08-16 14:34:23.707988490 +0200
+++ /boot/grub/grub.cfg 2015-08-16 14:42:28.929220963 +0200
@@ -104,6 +104,7 @@
 menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b1a4433d-a9cf-4fb8-9d93-d2637123a021' {
        load_video
        insmod gzio
+       if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod ext2
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root  b1a4433d-a9cf-4fb8-9d93-d2637123a021
@@ -119,6 +120,7 @@
        menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-advanced-b1a4433d-a9cf-4fb8-9d93-d2637123a021' {
                load_video
                insmod gzio
+               if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
                insmod ext2
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root  b1a4433d-a9cf-4fb8-9d93-d2637123a021
@@ -130,9 +132,25 @@
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd.img-3.16.0-4-amd64
        }
+       menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (systemd)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-init-systemd-b1a4433d-a9cf-4fb8-9d93-d2637123a021' {
+               load_video
+               insmod gzio
+               if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
+               insmod ext2
+               if [ x$feature_platform_search_hint = xy ]; then
+                 search --no-floppy --fs-uuid --set=root  b1a4433d-a9cf-4fb8-9d93-d2637123a021
+               else
+                 search --no-floppy --fs-uuid --set=root b1a4433d-a9cf-4fb8-9d93-d2637123a021
+               fi
+               echo    'Loading Linux 3.16.0-4-amd64 ...'
+               linux   /boot/vmlinuz-3.16.0-4-amd64 root=UUID=b1a4433d-a9cf-4fb8-9d93-d2637123a021 ro  quiet init=/lib/systemd/systemd
+               echo    'Loading initial ramdisk ...'
+               initrd  /boot/initrd.img-3.16.0-4-amd64
+       }
        menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-recovery-b1a4433d-a9cf-4fb8-9d93-d2637123a021' {
                load_video
                insmod gzio
+               if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
                insmod ext2
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root  b1a4433d-a9cf-4fb8-9d93-d2637123a021
HRio commented 8 years ago

Looks like https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%23755256

HRio commented 6 years ago

not relevant anymore as Debian have been shipping ZFS for a long time now.