I had the grub "error: out of memory" issue after upgrading Ubuntu to
22.04 from 21.10. I used a Live USB of Ubuntu to chroot into my system
and after many trials and failures, I could get past the issue by
changing line 36 in /etc/initramfs-tools/initramfs.conf by using a
different compression choice

    #
    # COMPRESS: [ gzip | bzip2 | lz4 | lzma | lzop | xz | zstd ]
    #

    COMPRESS=zstd

However, this was still not a fix as zstd provided a quicker boot
previously than any other but was failing now. Yet from there it seemed
it was a compression issue. Changed it back to zstd and went to another
fix.

I further learned that zstd had defaulted to a lower compression value
in /usr/sbin/mkinitramfs at 1 instead of 19 in Ubuntu 22.04. I changed
line 196 to 19 compression

    zstd) compress="zstd -q -19 -T0" ;;

Instead of

    zstd) compress="zstd -q -1 -T0" ;;

Problem solved from proper chroot and updating grub2 after changing line
196 of /usr/sbin/mkinitramfs for my system.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842320

Title:
  Out of Memory on boot with 5.2.0 kernel

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1842320/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to