i wanted to run an update on the kernel, as I got promoted the message “A newer OEM D kernel is available than what is set in GRUB. Clock here to learn more.”
But, if I run this command, I get the following output:
$ latest_oem_kernel=$(ls /boot/vmlinuz-* | grep '6.5.0-10..-oem' | sort -V | tail -n1 | awk -F'/' '{print $NF}' | sed 's/vmlinuz-//') && sudo sed -i.bak '/^GRUB_DEFAULT=/c\GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux '"$latest_oem_kernel"'"' /etc/default/grub && sudo update-grub && sudo apt install zenity && mkdir -p ~/.config/autostart && [ ! -f ~/.config/autostart/kernel_check.desktop ] && echo -e "[Desktop Entry]\nType=Application\nExec=bash -c \"latest_oem_kernel=\$(ls /boot/vmlinuz-* | grep '6.5.0-10..-oem' | sort -V | tail -n1 | awk -F'/' '{print \\\$NF}' | sed 's/vmlinuz-//') && current_grub_kernel=\$(grep '^GRUB_DEFAULT=' /etc/default/grub | sed -e 's/GRUB_DEFAULT=\\\"Advanced options for Ubuntu>Ubuntu, with Linux //g' -e 's/\\\"//g') && [ \\\"\\\${latest_oem_kernel}\\\" != \\\"\\\${current_grub_kernel}\\\" ] && zenity --text-info --html --width=300 --height=200 --title=\\\"Kernel Update Notification\\\" --filename=<(echo -e \\\"A newer OEM D kernel is available than what is set in GRUB. <a href='https://github.com/FrameworkComputer/linux-docs/blob/main/22.04-OEM-D.md'>Click here</a> to learn more.\\\")\"\nHidden=false\nNoDisplay=false\nX-GNOME-Autostart-enabled=true\nName[en_US]=Kernel check\nName=Kernel check\nComment[en_US]=\nComment=" > ~/.config/autostart/kernel_check.desktop
[sudo] password for loki:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.5.0-1018-oem
Found initrd image: /boot/initrd.img-6.5.0-1018-oem
Found linux image: /boot/vmlinuz-6.5.0-1016-oem
Found initrd image: /boot/initrd.img-6.5.0-1016-oem
Found linux image: /boot/vmlinuz-6.5.0-26-generic
Found initrd image: /boot/initrd.img-6.5.0-26-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
zenity is already the newest version (3.42.1-0ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Could you help me out?
I am having LUKS enabled during the setup, as I don’t want to get any personal data lost, if my laptop gets lost.
I see the same thing, on my Framework 16. sudo apt update ; sudo apt list --upgradeable show no packages available for upgrades.
> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
> uname -r
6.5.0-1018-oem
> latest_oem_kernel=$(ls /boot/vmlinuz-* | grep '6.5.0-10..-oem' | sort -V | tail -n1 | awk -F'/' '{print $NF}' | sed 's/vmlinuz-//') && sudo sed -i.bak '/^GRUB_DEFAULT=/c\GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux '"$latest_oem_kernel"'"' /etc/default/grub && sudo update-grub && sudo apt install zenity && mkdir -p ~/.config/autostart && [ ! -f ~/.config/autostart/kernel_check.desktop ] && echo -e "[Desktop Entry]\nType=Application\nExec=bash -c \"latest_oem_kernel=\$(ls /boot/vmlinuz-* | grep '6.5.0-10..-oem' | sort -V | tail -n1 | awk -F'/' '{print \\\$NF}' | sed 's/vmlinuz-//') && current_grub_kernel=\$(grep '^GRUB_DEFAULT=' /etc/default/grub | sed -e 's/GRUB_DEFAULT=\\\"Advanced options for Ubuntu>Ubuntu, with Linux //g' -e 's/\\\"//g') && [ \\\"\\\${latest_oem_kernel}\\\" != \\\"\\\${current_grub_kernel}\\\" ] && zenity --text-info --html --width=300 --height=200 --title=\\\"Kernel Update Notification\\\" --filename=<(echo -e \\\"A newer OEM D kernel is available than what is set in GRUB. <a href='https://github.com/FrameworkComputer/linux-docs/blob/main/22.04-OEM-D.md'>Click here</a> to learn more.\\\")\"\nHidden=false\nNoDisplay=false\nX-GNOME-Autostart-enabled=true\nName[en_US]=Kernel check\nName=Kernel check\nComment[en_US]=\nComment=" > ~/.config/autostart/kernel_check.desktop
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.5.0-1018-oem
Found initrd image: /boot/initrd.img-6.5.0-1018-oem
Found linux image: /boot/vmlinuz-6.5.0-1016-oem
Found initrd image: /boot/initrd.img-6.5.0-1016-oem
Found linux image: /boot/vmlinuz-6.5.0-21-generic
Found initrd image: /boot/initrd.img-6.5.0-21-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
zenity is already the newest version (3.42.1-0ubuntu1).
The following packages were automatically installed and are no longer required:
libgnome-bg-4-1 python3-brlapi python3-louis python3-speechd xbrlapi
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
No idea how I missed this previously. Yes, this is where it’s hanging up I suspect.
LUKS on Ubuntu, setting the parameter will need to be done manually.
You’re on the latest - 6.5.0.1018 and it’s set correctly.
Oh, huh. Any idea why the prompt window showed up saying there was a newer OEM kernel available, when I’m at the latest?
Edit: sorry to hijack the thread! Feel free to move to it’s own thread.
I am totally fine with it. I think as we have facing similar issues (even if you managed to be on latest, and I didn‘t manage it), I am totally fine that you used the thread as well. Might be helpful for any googler
Did you get any resolution on the problem of the notification coming up when the latest kernel is running? I’ve had the problem for a couple of oem upgrades and wonder how to turn the notification off.
My current kernel is 6.5.0-1020-oem so, that is the problem. Maybe there is an update on installing this bit. Otherwise, I’ll turn it off in autostart.
I have yet to be able to get the notification to pop up when installed and on 6.5.0-1020-oem - as it should be seen as the latest. I have tried countless clean installs on Ubuntu 22.04, updated it, never had it come up. If I change the grub parameters for testing to make sure it’s working, reboot, then it comes up as expected.