Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates don't enable new kernel, boot parameters without effect #335

Open
Letterus opened this issue Sep 12, 2024 · 5 comments
Open

Updates don't enable new kernel, boot parameters without effect #335

Letterus opened this issue Sep 12, 2024 · 5 comments

Comments

@Letterus
Copy link

What Happened?

I ran all updates, but it's always the old kernel which is booted. The newest is installed, but not selected. Also, when I add boot parameters to /etc/default/grub they don't end up in grub and thus show no effect.

Don't know if this is the right repo for system update issues?

Steps to Reproduce

Also see elementary/gala#2023 (comment)

Expected Behavior

New kernel should be loaded, boot parameters should be applied.

OS Version

8.x (Early Access)

Software Version

Latest release (I have run all updates)

Log Output

$ uname -a
Linux XinkPad280 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul  5 10:34:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
$ ls -la /boot/
insgesamt 186588
drwxr-xr-x  5 root root     4096 Sep 12 07:39 .
drwxr-xr-x 21 root root     4096 Sep 12 10:40 ..
-rw-r--r--  1 root root   287442 Jul  5 10:31 config-6.8.0-40-generic
-rw-r--r--  1 root root   287493 Aug 13 12:20 config-6.8.0-44-generic
drwx------  3 root root     4096 Jan  1  1970 efi
drwxr-xr-x  2 root root     4096 Sep 12 07:39 grub
lrwxrwxrwx  1 root root       27 Sep 11 17:58 initrd.img -> initrd.img-6.8.0-44-generic
-rw-r--r--  1 root root 71222640 Sep  2 10:35 initrd.img-6.8.0-40-generic
-rw-r--r--  1 root root 71193861 Sep 11 17:58 initrd.img-6.8.0-44-generic
lrwxrwxrwx  1 root root       27 Sep 12 07:38 initrd.img.old -> initrd.img-6.8.0-40-generic
drwx------  2 root root    16384 Aug 13 19:42 lost+found
-rw-------  1 root root  9058665 Jul  5 10:31 System.map-6.8.0-40-generic
-rw-------  1 root root  9061992 Aug 13 12:20 System.map-6.8.0-44-generic
lrwxrwxrwx  1 root root       24 Sep 11 17:58 vmlinuz -> vmlinuz-6.8.0-44-generic
-rw-------  1 root root 14944648 Jul  5 11:12 vmlinuz-6.8.0-40-generic
-rw-------  1 root root 14956936 Aug 13 12:22 vmlinuz-6.8.0-44-generic
lrwxrwxrwx  1 root root       24 Sep 12 07:38 vmlinuz.old -> vmlinuz-6.8.0-40-generic

No errors.

Hardware Info

Lenovo Thinkpad X280, secure boot enabled

@tintou
Copy link
Member

tintou commented Sep 12, 2024

What you want is to look at /boot/efi/EFI/ubuntu/grub

@Letterus
Copy link
Author

What you want is to look at /boot/efi/EFI/ubuntu/grub

Yes, thanks! Only -40 kernel listed /boot/efi/EFI/ubuntu/grub/grub.cfg, while the updates have modified and are listed in /boot/grub/grub.cfg.

Any idea what's going wrong here?

@Letterus
Copy link
Author

Letterus commented Sep 16, 2024

Today I ran apt upgrade and some new grub config files were installed. I ran upgrade-grub2 and update-initramfs manually. It then booted the most current kernel -44!

Reporting here whether a newly installed kernel is booted by the next kernel update automatically.

@Letterus
Copy link
Author

Also entries in /etc/default/grub now show effect:

$ cat /proc/cmdline BOOT_IMAGE=/vmlinuz-6.8.0-44-generic root=/dev/mapper/data-root ro quiet splash i915.enable_psr=0

When automatic updates work I'm going to close this issue as resolved.

@Letterus
Copy link
Author

The latest kernel -45 installed automatically. So think this issue is almost done.

Currently it still looks a bit off that the last lines are repeated:

Trigger für linux-image-6.8.0-45-generic (6.8.0-45.45) werden verarbeitet ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.8.0-45-generic
I: The initramfs will attempt to resume from /dev/dm-2
I: (/dev/mapper/data-swap)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-45-generic
Found initrd image: /boot/initrd.img-6.8.0-45-generic
Found linux image: /boot/vmlinuz-6.8.0-44-generic
Found initrd image: /boot/initrd.img-6.8.0-44-generic
Found linux image: /boot/vmlinuz-6.8.0-40-generic
Found initrd image: /boot/initrd.img-6.8.0-40-generic
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
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-45-generic
Found initrd image: /boot/initrd.img-6.8.0-45-generic
Found linux image: /boot/vmlinuz-6.8.0-44-generic
Found initrd image: /boot/initrd.img-6.8.0-44-generic
Found linux image: /boot/vmlinuz-6.8.0-40-generic
Found initrd image: /boot/initrd.img-6.8.0-40-generic
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 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants