Re: how to make debian use my swapfile for hibernation
On 3/18/15, Michael <email@example.com> wrote:
> On my old laptop, i used a swap partition for hibernate. It could be
> declared to the kernel (or rather, pm-utils?) by "resume=/dev/sdx"
> Now i'm going with a /swapfile, already created and mkswapped, but dunno how
> to tell the system about it.
> There is
> https://wiki.archlinux.org/index.php/Suspend_and_hibernate#Hibernation ....
> but, one reason i decided to go with a swap file, is to be able to easily
> change its size anytime later. But according to this manual, if i recreate
> it, i also have to adjust the offset stuff ? That's several fiddling steps
> (which i need to remember or at least to write down and remember where) --
> folks, this is no more what i call 'easily'.
> So, i wonder if there is some magic piece of software that i still did not
> discover, which simply detects the swapfile automaticly and dynamically
> (like, configuring only the filename or Label) ?
I am 100% out of my league answering this because I've never done
anything like what you're trying BUT... something did come to mind. Is
this something that you could "export" a value for? I've just barely
touched on using "export" because of playing around with debootstrap.
I've seen export's existence and usage expressed out on the Net over
the years, but my first debootstrap attempts were where I finally saw
it in action. I was having to export values for locales, I think it
was, just to get each debootstrap setup off the ground. That was
because I was following how-to instructions out on the Net instead of
via Debian.org. *oops*
If I'm remembering correctly, I both created my own variables and set
the values for them using that route. Not using it now but nice to
know what it does in case the need arises...
Hoping this at least maybe triggers another similar thought that might
actually work if this isn't quite appropriate for your usage.. :)
Talking Rock, Pickens County, Georgia, USA
* runs with plastic sporks *