So after zypper dup got finished and dracut completed (no reboot yet - just in case) I got these errors
windeath:/home/dart/Downloads # dracut -f
dracut[E]: Current resume kernel argument points to an invalid disk
dracut[E]: Current resume kernel argument points to an invalid disk
After scratching my head for a second I realized it was because I eliminated my swap partition about a month ago and am using a btrfs swapfile instead … I never noticed this error before and don’t use hibernate (just sleep) which works fine … sooo I changed my grub resume line from
which points at /dev/sda2 where my swapfile lives … I determined the offset with
windeath:/home/dart/Downloads # btrfs inspect-internal map-swapfile -r /swap/swapfile
which returned 28349784
After doing a grub2-mkconfig -o /boot/grub2/grub.cfg I am still getting the dracut errors with dracut -f … because I don’t use hibernate I’m pretty sure this won’t affect my booting at all (like the part-3 line did not) but I don’t like dracut errors and maybe I got the grub line incorrect I also tried resume.offset=28349784 but the errors persist … anybody see a mistake here?
I’m wondering if the ‘/dev/disk/by-id/’ device symlink is available/resolvable by initrd during the early boot. Best practice might be to use UUID instead, but as Neil pointed out if you’re not using hibernation why specify it at boot?
What is reported by the following? blkid cat /etc/fstab
FWIW, I don’t have a resume= parameter at all, but my swap partition is listed in /etc/fstab, and I can hibernate without issue, (although I don’t commonly do so).
I’m only using a swap partition, so specifying it in /etc/fstab is sufficient for systemd. Since you’re using a swapfile, the kernel may also need the offset of the swapfile for hibernation to work properly. I’m in uncharted territory for that though.