TESTED
• Reinstalled initramfs-tools-core to undo changes of compression on /sbin/mkinitramfs .
• Confirmed compression set to default values.
• Restored /etc/initramfs-tools/initramfs.conf to default values, with "MODULES=most" .
• Installed grub-efi-amd64/kinetic,now 2.06-2ubuntu14.1 amd64 and related versions of packages.
• Ran the following
sudo update-initramfs -v -u
sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo grub-mkconfig -o /boot/efi/EFI/ubuntu/grub.cfg
sudo update-grub2
• Rebooted
VERIFICATION DONE
• Confirmed fix on MSI GS63VR 6RF laptop. No "out of memory" error on grub boot.
• (For some who mentioned nvidia drivers, I have 525.78.01-0ubuntu0.22.10.1 amd64 installed.)
• My current initrd.img size is larger of course, so if you have multiple versions and your /boot partition is small you may have to remove older versions so you don't run out of room---not in any way meaning the "out of memory" error.
TESTED tools-core to undo changes of compression on /sbin/mkinitramfs . tools/initramfs .conf to default values, with "MODULES=most" . amd64/kinetic, now 2.06-2ubuntu14.1 amd64 and related versions of packages. EFI/ubuntu/ grub.cfg
• Reinstalled initramfs-
• Confirmed compression set to default values.
• Restored /etc/initramfs-
• Installed grub-efi-
• Ran the following
sudo update-initramfs -v -u
sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo grub-mkconfig -o /boot/efi/
sudo update-grub2
• Rebooted
VERIFICATION DONE 01-0ubuntu0. 22.10.1 amd64 installed.)
• Confirmed fix on MSI GS63VR 6RF laptop. No "out of memory" error on grub boot.
• (For some who mentioned nvidia drivers, I have 525.78.
• My current initrd.img size is larger of course, so if you have multiple versions and your /boot partition is small you may have to remove older versions so you don't run out of room---not in any way meaning the "out of memory" error.