Public bug reported:

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.

Also made comment to Bug #1842320.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: Incomplete


** Tags: grub initramfs jammy zstd

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

Title:
  Grub2 Error Out of Memory

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to