Swap file vs swap parition for hiberation

hibernation needs a much larger swap space than the default 512M swap file depending on how much ram is installed.

also to utilize any swap space for hibernation, you need to provide the kernel with the resume= key and give it a UUID value to find the contents after boot.

my question is about this UUID.

finding and providing the UUID for a partition is strait forward enough but what if you wanted to use a swap file instead?

the mkswap command will assign a UUID and even report it when you run the command on the swap file.

so is this file UUID just as valid to use in grub as a partition UUID?

i’ve seen guides that suggest you need to provide the kernel with both the partition resume=UUID pair for the partition where the swap file exists, AND you need to provide a resume_offset key value as well, so that the kernel knows where to find the file on the partition.

wouldn’t simply providing the resume=UUID of the swap file given by mkswap accomplish the same thing?

my searching has not lead me to a clear answer to this question, and having to provide TWO key=value pairs to the kernel seems burdensome, but that’s the advice i’m reading.