#StackBounty: #boot #dual-boot #grub2 #uefi grub-reboot: not seeing the Windows entry listed?

Bounty: 50

I am trying to use grub-reboot to boot just once to Windows (following this post).

Strangely enough, using the auto-completion from grub-reboot (or awk -F' '/menuentry / {print $2}' /boot/grub/grub.cfg from this post,) I only see Ubuntu entries, or the last one UEFI Firmware Settings. Am I not supposed to see the Windows entry listed? How would I then boot to Windows at next restart?

Here is the output from awk -F' '/menuentry / {print $2}' /boot/grub/grub.cfg:

Ubuntu
Ubuntu, with Linux 5.4.0-54-generic
Ubuntu, with Linux 5.4.0-54-generic (recovery mode)
Ubuntu, with Linux 5.4.0-53-generic
Ubuntu, with Linux 5.4.0-53-generic (recovery mode)
Ubuntu, with Linux 5.4.0-52-generic
Ubuntu, with Linux 5.4.0-52-generic (recovery mode)
UEFI Firmware Settings


Get this bounty!!!

#StackBounty: #boot #grub2 #kexec Kexec back to Grub2

Bounty: 100

I have an application where I need to boot to Linux with grub, execute automated scripts and then automatically boot to Windows. Can I use Kexec to run grub2 with a command line like:

insmod part_msdos
insmod chain
chainloader (hd1,msdos2)+1

?

I’ve heard of grub4dos (link), but it seems to be discontinued, so is there a way to do it with grub2? I would basically need a loadable image of grub for kexec. I tried to load the images found in this explanation, but they don’t seem to work. Thanks for any hints.


UPDATE

It seems that that just is not yet implemented in kexec. See bugs.launchpad.net.


Get this bounty!!!

#StackBounty: #boot #dual-boot #grub2 #lubuntu What should be done with laptop bootlooping iff monitor is attached – Dell laptop with L…

Bounty: 500

I have a Dell Latitude 7480 laptop with preinstalled Windows 10.

I installed Lubuntu 20.04 on it, with dual booting.

Things worked fine until I tried attaching an external monitor (that worked perfectly fine with my ancient Lenovo laptop).

I discovered that with attached screen latop starts bootlooping. GRUB menu appears as usual and starts countdown from 10.

After 2 seconds (when it reaches 8) laptop screen flashes black screen, GRUB appears again but

  • it stops reacting to a keyboard input
  • continues flashing black screen every few seconds
  • countdown freezes
  • neither Linux nor Windows boots

There is no error message at all – so I have no good terms to google for and neither DDG nor Google nor asking on Lubuntu Support telegram channel helped.

As workaround I can remove HDMI cable, select OS in GRUB menu and reattach it (attaching too early freezes boot, but attaching it too late causes Windows to not detect monitor at all).

Using screen after boot:

  1. With Windows 10 it worked fine (except extremely annoying interface to change screen settings)
  2. Screen refused to work at all in Lubuntu until I installed Nvidia Drivers ( How to install Nvidia driver in Ubuntu 18.04? was still mostly applicable )

There is no error message at all – laptop screen flashes black after about 2 seconds of GRUB screen and it stops reacting to a keyboard input.

I am primarily looking for info what is the proper method of diagnosing GRUB issues, how GRUB can be updated safely and how can I get rid of this problem.

To avoid XY problem: yes, I need Windows OS. I need it to file taxes using some insane program distributed as PDF file that is not openable by anything on Linux (and even if I would find workaround for this specific file it will likely happen again).

Workaround: remove HDMI cable as system boots, attach it immediately after GRUB stage. Yes, it is ridiculous and I want to stop this.

More info: I never tried booting with monitor attached before I installed Linux (maybe problem was happening also while it was just Windows?). Problem is not happening with HDMI cable attached and not connected to an external display.


Get this bounty!!!

#StackBounty: #boot #grub2 #upgrade #kernel #20.04 ZFS doesn't allow me to follow kernels with updates

Bounty: 150

I installed ubuntu 20.04 sometime in june.

by now I’m updated to ubuntu 20.04.1 LTS

there’s been a few kernel updates. end everytime I run updates Zsys tries to put new kernel version as the first option.

And I’d like nothing more but to use the new kernels.

but they simply won’t boot.

when I say won’t boot, I mean some kinda freeze happens during the boot process I can’t drop to TTY/boot command line and I don’t get any error messages (maybe I’m not hitting the right key)

I just have my motherboard logo and that’s it.

the ubuntu logo and spinner don’t show up and it could stay like this indefinitely if I did nothing.

luckily i still have my old grub entry and with grub customizer I’ve been keeping it at the top of the list.

but I want to solve this issue now before ubuntu decides I’ve been hoarding an old kernel for too long.

is there something in particular I’m supposed to do to boot a new kernel with ZFS?

I’m guessing it has nothing to do with the specific kernel version and more to do with zfs being a block that’s not yet intricately tied into the rest of the OS. and where ubuntu is able to automatically update the kernel references everywhere else it doesn’t yet automatically update a variable inside ZFS that points to the kernel version, or something like that?

I don’t know.

Anyways :

t@tsu:~$ dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+'
ii  linux-image-5.4.0-40-generic                                5.4.0-40.44                                                 amd64        Signed kernel image generic
ii  linux-image-5.4.0-45-generic                                5.4.0-45.49                                                 amd64        Signed kernel image generic
ii  linux-image-5.4.0-47-generic                                5.4.0-47.51                                                 amd64        Signed kernel image generic

5.4.0-40 boots and is the one my ubuntu 20.04 installed with

5.4.0-45 does not boot and was installed by updates not by me

5.4.0-47 does not boot and was installed by updates not by me

Ideally I’d like to boot 5.4.0-47

EDIT :

On kernel installs I do get an error :

Setting up linux-modules-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
Setting up linux-image-unsigned-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.4.0-47-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-5.4.0-47-generic
I: /boot/vmlinuz is now a symlink to vmlinuz-5.4.48-050448-generic
I: /boot/initrd.img is now a symlink to initrd.img-5.4.48-050448-generic
Processing triggers for linux-image-unsigned-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.4.48-050448-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.48-050448-generic
I: The initramfs will attempt to resume from /dev/sda2
I: (UUID=53c19176-f03e-4c40-a6ed-3a2627160647)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...

and a ton of these :

Warning: Couldn't find any valid initrd for dataset rpool/ROOT/ubuntu_38tazy@autozsys_7lfyl1.

and here’s update-grub :

(doesn’t look optimal)

https://pastebin.com/8y6x36u4


Get this bounty!!!

#StackBounty: #boot #grub2 #upgrade #kernel #20.04 ZFS doesn't allow me to follow kernels with updates

Bounty: 150

I installed ubuntu 20.04 sometime in june.

by now I’m updated to ubuntu 20.04.1 LTS

there’s been a few kernel updates. end everytime I run updates Zsys tries to put new kernel version as the first option.

And I’d like nothing more but to use the new kernels.

but they simply won’t boot.

when I say won’t boot, I mean some kinda freeze happens during the boot process I can’t drop to TTY/boot command line and I don’t get any error messages (maybe I’m not hitting the right key)

I just have my motherboard logo and that’s it.

the ubuntu logo and spinner don’t show up and it could stay like this indefinitely if I did nothing.

luckily i still have my old grub entry and with grub customizer I’ve been keeping it at the top of the list.

but I want to solve this issue now before ubuntu decides I’ve been hoarding an old kernel for too long.

is there something in particular I’m supposed to do to boot a new kernel with ZFS?

I’m guessing it has nothing to do with the specific kernel version and more to do with zfs being a block that’s not yet intricately tied into the rest of the OS. and where ubuntu is able to automatically update the kernel references everywhere else it doesn’t yet automatically update a variable inside ZFS that points to the kernel version, or something like that?

I don’t know.

Anyways :

t@tsu:~$ dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+'
ii  linux-image-5.4.0-40-generic                                5.4.0-40.44                                                 amd64        Signed kernel image generic
ii  linux-image-5.4.0-45-generic                                5.4.0-45.49                                                 amd64        Signed kernel image generic
ii  linux-image-5.4.0-47-generic                                5.4.0-47.51                                                 amd64        Signed kernel image generic

5.4.0-40 boots and is the one my ubuntu 20.04 installed with

5.4.0-45 does not boot and was installed by updates not by me

5.4.0-47 does not boot and was installed by updates not by me

Ideally I’d like to boot 5.4.0-47

EDIT :

On kernel installs I do get an error :

Setting up linux-modules-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
Setting up linux-image-unsigned-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.4.0-47-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-5.4.0-47-generic
I: /boot/vmlinuz is now a symlink to vmlinuz-5.4.48-050448-generic
I: /boot/initrd.img is now a symlink to initrd.img-5.4.48-050448-generic
Processing triggers for linux-image-unsigned-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.4.48-050448-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.48-050448-generic
I: The initramfs will attempt to resume from /dev/sda2
I: (UUID=53c19176-f03e-4c40-a6ed-3a2627160647)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...

and a ton of these :

Warning: Couldn't find any valid initrd for dataset rpool/ROOT/ubuntu_38tazy@autozsys_7lfyl1.

and here’s update-grub :

(doesn’t look optimal)

https://pastebin.com/8y6x36u4


Get this bounty!!!

#StackBounty: #boot #grub2 #upgrade #kernel #20.04 ZFS doesn't allow me to follow kernels with updates

Bounty: 150

I installed ubuntu 20.04 sometime in june.

by now I’m updated to ubuntu 20.04.1 LTS

there’s been a few kernel updates. end everytime I run updates Zsys tries to put new kernel version as the first option.

And I’d like nothing more but to use the new kernels.

but they simply won’t boot.

when I say won’t boot, I mean some kinda freeze happens during the boot process I can’t drop to TTY/boot command line and I don’t get any error messages (maybe I’m not hitting the right key)

I just have my motherboard logo and that’s it.

the ubuntu logo and spinner don’t show up and it could stay like this indefinitely if I did nothing.

luckily i still have my old grub entry and with grub customizer I’ve been keeping it at the top of the list.

but I want to solve this issue now before ubuntu decides I’ve been hoarding an old kernel for too long.

is there something in particular I’m supposed to do to boot a new kernel with ZFS?

I’m guessing it has nothing to do with the specific kernel version and more to do with zfs being a block that’s not yet intricately tied into the rest of the OS. and where ubuntu is able to automatically update the kernel references everywhere else it doesn’t yet automatically update a variable inside ZFS that points to the kernel version, or something like that?

I don’t know.

Anyways :

t@tsu:~$ dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+'
ii  linux-image-5.4.0-40-generic                                5.4.0-40.44                                                 amd64        Signed kernel image generic
ii  linux-image-5.4.0-45-generic                                5.4.0-45.49                                                 amd64        Signed kernel image generic
ii  linux-image-5.4.0-47-generic                                5.4.0-47.51                                                 amd64        Signed kernel image generic

5.4.0-40 boots and is the one my ubuntu 20.04 installed with

5.4.0-45 does not boot and was installed by updates not by me

5.4.0-47 does not boot and was installed by updates not by me

Ideally I’d like to boot 5.4.0-47

EDIT :

On kernel installs I do get an error :

Setting up linux-modules-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
Setting up linux-image-unsigned-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.4.0-47-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-5.4.0-47-generic
I: /boot/vmlinuz is now a symlink to vmlinuz-5.4.48-050448-generic
I: /boot/initrd.img is now a symlink to initrd.img-5.4.48-050448-generic
Processing triggers for linux-image-unsigned-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.4.48-050448-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.48-050448-generic
I: The initramfs will attempt to resume from /dev/sda2
I: (UUID=53c19176-f03e-4c40-a6ed-3a2627160647)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...

and a ton of these :

Warning: Couldn't find any valid initrd for dataset rpool/ROOT/ubuntu_38tazy@autozsys_7lfyl1.

and here’s update-grub :

(doesn’t look optimal)

https://pastebin.com/8y6x36u4


Get this bounty!!!

#StackBounty: #boot #grub2 #upgrade #kernel #20.04 ZFS doesn't allow me to follow kernels with updates

Bounty: 150

I installed ubuntu 20.04 sometime in june.

by now I’m updated to ubuntu 20.04.1 LTS

there’s been a few kernel updates. end everytime I run updates Zsys tries to put new kernel version as the first option.

And I’d like nothing more but to use the new kernels.

but they simply won’t boot.

when I say won’t boot, I mean some kinda freeze happens during the boot process I can’t drop to TTY/boot command line and I don’t get any error messages (maybe I’m not hitting the right key)

I just have my motherboard logo and that’s it.

the ubuntu logo and spinner don’t show up and it could stay like this indefinitely if I did nothing.

luckily i still have my old grub entry and with grub customizer I’ve been keeping it at the top of the list.

but I want to solve this issue now before ubuntu decides I’ve been hoarding an old kernel for too long.

is there something in particular I’m supposed to do to boot a new kernel with ZFS?

I’m guessing it has nothing to do with the specific kernel version and more to do with zfs being a block that’s not yet intricately tied into the rest of the OS. and where ubuntu is able to automatically update the kernel references everywhere else it doesn’t yet automatically update a variable inside ZFS that points to the kernel version, or something like that?

I don’t know.

Anyways :

t@tsu:~$ dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+'
ii  linux-image-5.4.0-40-generic                                5.4.0-40.44                                                 amd64        Signed kernel image generic
ii  linux-image-5.4.0-45-generic                                5.4.0-45.49                                                 amd64        Signed kernel image generic
ii  linux-image-5.4.0-47-generic                                5.4.0-47.51                                                 amd64        Signed kernel image generic

5.4.0-40 boots and is the one my ubuntu 20.04 installed with

5.4.0-45 does not boot and was installed by updates not by me

5.4.0-47 does not boot and was installed by updates not by me

Ideally I’d like to boot 5.4.0-47

EDIT :

On kernel installs I do get an error :

Setting up linux-modules-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
Setting up linux-image-unsigned-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.4.0-47-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-5.4.0-47-generic
I: /boot/vmlinuz is now a symlink to vmlinuz-5.4.48-050448-generic
I: /boot/initrd.img is now a symlink to initrd.img-5.4.48-050448-generic
Processing triggers for linux-image-unsigned-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.4.48-050448-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.48-050448-generic
I: The initramfs will attempt to resume from /dev/sda2
I: (UUID=53c19176-f03e-4c40-a6ed-3a2627160647)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...

and a ton of these :

Warning: Couldn't find any valid initrd for dataset rpool/ROOT/ubuntu_38tazy@autozsys_7lfyl1.

and here’s update-grub :

(doesn’t look optimal)

https://pastebin.com/8y6x36u4


Get this bounty!!!

#StackBounty: #boot #grub2 #upgrade #kernel #20.04 ZFS doesn't allow me to follow kernels with updates

Bounty: 150

I installed ubuntu 20.04 sometime in june.

by now I’m updated to ubuntu 20.04.1 LTS

there’s been a few kernel updates. end everytime I run updates Zsys tries to put new kernel version as the first option.

And I’d like nothing more but to use the new kernels.

but they simply won’t boot.

when I say won’t boot, I mean some kinda freeze happens during the boot process I can’t drop to TTY/boot command line and I don’t get any error messages (maybe I’m not hitting the right key)

I just have my motherboard logo and that’s it.

the ubuntu logo and spinner don’t show up and it could stay like this indefinitely if I did nothing.

luckily i still have my old grub entry and with grub customizer I’ve been keeping it at the top of the list.

but I want to solve this issue now before ubuntu decides I’ve been hoarding an old kernel for too long.

is there something in particular I’m supposed to do to boot a new kernel with ZFS?

I’m guessing it has nothing to do with the specific kernel version and more to do with zfs being a block that’s not yet intricately tied into the rest of the OS. and where ubuntu is able to automatically update the kernel references everywhere else it doesn’t yet automatically update a variable inside ZFS that points to the kernel version, or something like that?

I don’t know.

Anyways :

t@tsu:~$ dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+'
ii  linux-image-5.4.0-40-generic                                5.4.0-40.44                                                 amd64        Signed kernel image generic
ii  linux-image-5.4.0-45-generic                                5.4.0-45.49                                                 amd64        Signed kernel image generic
ii  linux-image-5.4.0-47-generic                                5.4.0-47.51                                                 amd64        Signed kernel image generic

5.4.0-40 boots and is the one my ubuntu 20.04 installed with

5.4.0-45 does not boot and was installed by updates not by me

5.4.0-47 does not boot and was installed by updates not by me

Ideally I’d like to boot 5.4.0-47

EDIT :

On kernel installs I do get an error :

Setting up linux-modules-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
Setting up linux-image-unsigned-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.4.0-47-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-5.4.0-47-generic
I: /boot/vmlinuz is now a symlink to vmlinuz-5.4.48-050448-generic
I: /boot/initrd.img is now a symlink to initrd.img-5.4.48-050448-generic
Processing triggers for linux-image-unsigned-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.4.48-050448-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.48-050448-generic
I: The initramfs will attempt to resume from /dev/sda2
I: (UUID=53c19176-f03e-4c40-a6ed-3a2627160647)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...

and a ton of these :

Warning: Couldn't find any valid initrd for dataset rpool/ROOT/ubuntu_38tazy@autozsys_7lfyl1.

and here’s update-grub :

(doesn’t look optimal)

https://pastebin.com/8y6x36u4


Get this bounty!!!

#StackBounty: #boot #grub2 #upgrade #kernel #20.04 ZFS doesn't allow me to follow kernels with updates

Bounty: 150

I installed ubuntu 20.04 sometime in june.

by now I’m updated to ubuntu 20.04.1 LTS

there’s been a few kernel updates. end everytime I run updates Zsys tries to put new kernel version as the first option.

And I’d like nothing more but to use the new kernels.

but they simply won’t boot.

when I say won’t boot, I mean some kinda freeze happens during the boot process I can’t drop to TTY/boot command line and I don’t get any error messages (maybe I’m not hitting the right key)

I just have my motherboard logo and that’s it.

the ubuntu logo and spinner don’t show up and it could stay like this indefinitely if I did nothing.

luckily i still have my old grub entry and with grub customizer I’ve been keeping it at the top of the list.

but I want to solve this issue now before ubuntu decides I’ve been hoarding an old kernel for too long.

is there something in particular I’m supposed to do to boot a new kernel with ZFS?

I’m guessing it has nothing to do with the specific kernel version and more to do with zfs being a block that’s not yet intricately tied into the rest of the OS. and where ubuntu is able to automatically update the kernel references everywhere else it doesn’t yet automatically update a variable inside ZFS that points to the kernel version, or something like that?

I don’t know.

Anyways :

t@tsu:~$ dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+'
ii  linux-image-5.4.0-40-generic                                5.4.0-40.44                                                 amd64        Signed kernel image generic
ii  linux-image-5.4.0-45-generic                                5.4.0-45.49                                                 amd64        Signed kernel image generic
ii  linux-image-5.4.0-47-generic                                5.4.0-47.51                                                 amd64        Signed kernel image generic

5.4.0-40 boots and is the one my ubuntu 20.04 installed with

5.4.0-45 does not boot and was installed by updates not by me

5.4.0-47 does not boot and was installed by updates not by me

Ideally I’d like to boot 5.4.0-47

EDIT :

On kernel installs I do get an error :

Setting up linux-modules-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
Setting up linux-image-unsigned-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.4.0-47-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-5.4.0-47-generic
I: /boot/vmlinuz is now a symlink to vmlinuz-5.4.48-050448-generic
I: /boot/initrd.img is now a symlink to initrd.img-5.4.48-050448-generic
Processing triggers for linux-image-unsigned-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.4.48-050448-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.48-050448-generic
I: The initramfs will attempt to resume from /dev/sda2
I: (UUID=53c19176-f03e-4c40-a6ed-3a2627160647)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...

and a ton of these :

Warning: Couldn't find any valid initrd for dataset rpool/ROOT/ubuntu_38tazy@autozsys_7lfyl1.

and here’s update-grub :

(doesn’t look optimal)

https://pastebin.com/8y6x36u4


Get this bounty!!!

#StackBounty: #boot #grub2 #upgrade #kernel #20.04 ZFS doesn't allow me to follow kernels with updates

Bounty: 150

I installed ubuntu 20.04 sometime in june.

by now I’m updated to ubuntu 20.04.1 LTS

there’s been a few kernel updates. end everytime I run updates Zsys tries to put new kernel version as the first option.

And I’d like nothing more but to use the new kernels.

but they simply won’t boot.

when I say won’t boot, I mean some kinda freeze happens during the boot process I can’t drop to TTY/boot command line and I don’t get any error messages (maybe I’m not hitting the right key)

I just have my motherboard logo and that’s it.

the ubuntu logo and spinner don’t show up and it could stay like this indefinitely if I did nothing.

luckily i still have my old grub entry and with grub customizer I’ve been keeping it at the top of the list.

but I want to solve this issue now before ubuntu decides I’ve been hoarding an old kernel for too long.

is there something in particular I’m supposed to do to boot a new kernel with ZFS?

I’m guessing it has nothing to do with the specific kernel version and more to do with zfs being a block that’s not yet intricately tied into the rest of the OS. and where ubuntu is able to automatically update the kernel references everywhere else it doesn’t yet automatically update a variable inside ZFS that points to the kernel version, or something like that?

I don’t know.

Anyways :

t@tsu:~$ dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+'
ii  linux-image-5.4.0-40-generic                                5.4.0-40.44                                                 amd64        Signed kernel image generic
ii  linux-image-5.4.0-45-generic                                5.4.0-45.49                                                 amd64        Signed kernel image generic
ii  linux-image-5.4.0-47-generic                                5.4.0-47.51                                                 amd64        Signed kernel image generic

5.4.0-40 boots and is the one my ubuntu 20.04 installed with

5.4.0-45 does not boot and was installed by updates not by me

5.4.0-47 does not boot and was installed by updates not by me

Ideally I’d like to boot 5.4.0-47

EDIT :

On kernel installs I do get an error :

Setting up linux-modules-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
Setting up linux-image-unsigned-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.4.0-47-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-5.4.0-47-generic
I: /boot/vmlinuz is now a symlink to vmlinuz-5.4.48-050448-generic
I: /boot/initrd.img is now a symlink to initrd.img-5.4.48-050448-generic
Processing triggers for linux-image-unsigned-5.4.48-050448-generic (5.4.48-050448.202006220832) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.4.48-050448-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.48-050448-generic
I: The initramfs will attempt to resume from /dev/sda2
I: (UUID=53c19176-f03e-4c40-a6ed-3a2627160647)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...

and a ton of these :

Warning: Couldn't find any valid initrd for dataset rpool/ROOT/ubuntu_38tazy@autozsys_7lfyl1.

and here’s update-grub :

(doesn’t look optimal)

https://pastebin.com/8y6x36u4


Get this bounty!!!