Glad to see that you can boot now, but I wouldn't try to hibernate if I were you:
leyvi wrote:Command line looks like this:
Code: Select all
resume=/swap/swapfile hugepagesz=1GB hugepages=8 pcie_aspm=force
Maybe the
resume, since
that filesystem isn't mounted yet?
(Emphasis mine.)
You use a swap file instead of a partition ? (It looks like your LUKS volume has the root filesystem and nothing else, no LVM and no partitions.) Resuming from a swap file is not so simple.
Here are some excerpts from files in
/usr/src/linux/Documentation/power/.
Code: Select all
**BIG FAT WARNING**
If you touch anything on disk between suspend and resume...
...kiss your data goodbye.
If you do resume from initrd after your filesystems are mounted...
...bye bye root partition.
[this is actually same case as above]
so it's a
good thing that the filesystem isn't mounted yet.
Code: Select all
[...]
resume=<swap_file_partition> resume_offset=<swap_file_offset>
so you don't mount, instead you give a partition and an offset; but that doesn't apply because
Code: Select all
[...]
Use a userland suspend application that will set the partition and offset
with the help of the SNAPSHOT_SET_SWAP_AREA ioctl described in
Documentation/power/userland-swsusp.rst (this is the only method to suspend
to a swap file allowing the resume to be initiated from an initrd or initramfs
image).
The file
userland-swsusp.rst, which I won't quote here, describes how to write a userland suspend application. Fun reading.
sys-power/suspend seems to be such a userland suspend application (don't know, I don't use it) but its goals are different. I don't see any mention of SNAPSHOT_SET_SWAP_AREA.
So your options are:
- Don't hibernate.
- Scour the Internet for a userland suspend application that supports resuming from a swap file.
- Install sys-power/suspend, study it and hack it to add swap file functionality.
- Remodel your /dev/mapper/rootfs. Backup your install; add LVM, or just create a root and a swap partition without LVM; restore your install.
(I'm pretty sure you can partition the
/dev/mapper/rootfs directly, like other block devices. @zen_desu: would ugrd detect such a setup ?)
EDIT: the
Archwiki implies that your initramfs can echo the file offset to
/sys/power/resume_offset and then the
major:
minor to
/sys/power/resume ? But that contradicts the statement in
swsusp-and-swap-files.rst .
The practical unit of "Learning Experience" is the milli-Gentoo.