pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.34k stars 79 forks source link

`linux-system76` update crashes system when generating initramfs #3247

Open mdupont opened 2 months ago

mdupont commented 2 months ago

On a Galago Pro (galp5) laptop.

Distribution (run cat /etc/os-release):

NAME="Pop!_OS"
VERSION="22.04 LTS"

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

linux-system76:
  Installed: 6.6.10.76060610.202401051437~1709764300~22.04~379e7a9
  Candidate: 6.6.10.76060610.202401051437~1709764300~22.04~379e7a9
  Version table:
 *** 6.6.10.76060610.202401051437~1709764300~22.04~379e7a9 1001
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
        100 /var/lib/dpkg/status

Issue/Bug Description:

In the middle of running apt upgrade, the system suddenly crashed and halted. When rebooting in default mode, it was unable to mount disks and started a failsafe mode.

When rebooting with the previous kernel conf (oldkern.conf) , it booted succesfully.

apt reports that the linux-system76 package is not correctly configured and that we should run sudo dpkg --configure -a to fix it. When running the command, the system crashes again in the exact same way, when generating the initramfs for the new kernel.

Reproduced consistently across several attempts, while on battery. It always fails at the same time.

A few minutes later I tried again while plugged in, and the initramfs generation completed successfully.

Steps to reproduce (if you know):

Expected behavior:

Initramfs should be able to be generated without crashing the system.

Other Notes: