doc: Clarify instructions for hibernation on a swap file.

Fixes <https://issues.guix.gnu.org/62711>.

* doc/guix.texi (Swap Space): Change 'resume' argument to a device in
example; add comments.  Update sentence describing 'resume' and
'resume_offset'.
This commit is contained in:
Ludovic Courtès 2023-05-19 17:04:06 +02:00
parent bd7b795aeb
commit 7d1d5e16da
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 5 additions and 4 deletions

View File

@ -17580,14 +17580,15 @@ hibernation via the @code{resume} kernel argument
file-systems)))))
(kernel-arguments
(cons* "resume=/swapfile"
"resume_offset=92514304"
(cons* "resume=/dev/sda3" ;device that holds /swapfile
"resume_offset=92514304" ;offset of /swapfile on device
%default-kernel-arguments))
@end lisp
This other snippet of @code{operating-system} enables the swap file
@file{/swapfile} for hibernation by telling the kernel about the file
(@code{resume} argument) and its offset on disk (@code{resume_offset}
@file{/swapfile} for hibernation by telling the kernel about the
partition containing it
(@code{resume} argument) and its offset on that partition (@code{resume_offset}
argument). The latter value can be found in the output of the command
@command{filefrag -e} as the first number right under the
@code{physical_offset} column header (the second command extracts its