Solution to the error "The initramfs will attempt to resume from /dev/dm-1. Set the RESUME variable to override this."
The following is an error when updating initramfs-tools:
Processing triggers for initramfs-tools (0.130ubuntu3.8)… update-initramfs: Generating /boot/initrd.img-5.1.0-15-generic I: The initramfs will attempt to resume from /dev/dm-1 I: (/dev/mapper/vg0-swap) I: Set the RESUME variable to override this.
Before proceeding beyond this point, back up your data.
This error usually occurs if the computer had a dual boot and a swap file that may have been deleted or changed when installing Linux. Since I use a solid state drive (SSD) and swap files are not necessary for it, open a terminal window and type the following commands:
sudo blkid
Lists all UUIDs of the disk partitions.
sudo lsblk
Lists block devices and swap location.
sudo swapon -s
This shows which one is active. In my case, there was none.
Once you list the UUIDs, compare them to the one in the /etc/fstab file.
cat /etc/fstab
If there is no match, comment out the entry in the /etc/fstab file with a # before the line that says swap.
Save the /etc/fstab file.
vim /etc/initramfs-tools/conf.d/resume
Add the line
RESUME=none
sudo update-initramfs -u -k all
The above command regenerates the files. There should be no errors this time.