RESUME or resume variable for initramfs config?
https://askubuntu.com/questions/1564358/resume-or-resume-variable-for-initramfs-config
I realize this question may seem trivial, but following my recent experience, I believe it holds relevance for me and potentially for the community as well.
I recently performed a fresh installation of Ubuntu 24.04 on my workstation and configured a swap partition on a secondary SSD.
I configured GRUB with the resume variable in lowercase:
/etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=fcb43bc3-b6b8-4707-8a23-683bf93bd9bf"
and initramfs with the RESUME variable in uppercase, as recommended in various wikis and documentation:
/etc/initramfs-tools/conf.d/resume
RESUME=UUID=fcb43bc3-b6b8-4707-8a23-683bf93bd9bf
This configuration led to intermittent resume from hibernation failures and overall system instability.
[ 6.366929] Hibernate inconsistent memory map detected!
[ 6.366933] PM: hibernation: Image mismatch: architecture specific data
[ 6.367902] PM: Error -1 resuming
[ 6.367906] PM: hibernation: Failed to load image, recovering.
[ 6.368582] PM: hibernation: Basic memory bitmaps freed
[ 6.369124] PM: hibernation: resume failed (-1)
After troubleshooting potential causes and testing various remedies, I decided to systematically review the entire configuration one final time before abandoning hibernation (at least temporarily). Interestingly, as randomly, I discovered that using lowercase in the initramfs configuration
sudo gedit /etc/initramfs-tools/conf.d/resume
resume=UUID=fcb43bc3-b6b8-4707-8a23-683bf93bd9bf
produced the expected correct update:
sudo update-initramfs -u -k all
update-initramfs: Generating /boot/initrd.img-6.17.0-14-generic
I: The initramfs will attempt to resume from /dev/sdc2
I: (UUID=fcb43bc3-b6b8-4707-8a23-683bf93bd9bf)
I: Set the RESUME variable to override this.
update-initramfs: Generating /boot/initrd.img-6.14.0-37-generic
I: The initramfs will attempt to resume from /dev/sdc2
I: (UUID=fcb43bc3-b6b8-4707-8a23-683bf93bd9bf)
I: Set the RESUME variable to override this.
After making this change, the hibernation problems and system instability were resolved.
Notably, the uppercase variant RESUME=UUID=fcb43bc3-b6b8-4707-8a23-683bf93bd9bf generated no indication that the system would attempt to resume from the specified device at initramfs update.
Two questions arise:
Has there been a change in initramfs behavior?
Has it been aligned with GRUB's parameter format?
Is it just a coincidence?