From: Mekeor Melire <mekeor@posteo.de>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 62711@debbugs.gnu.org, Josselin Poiret <dev@jpoiret.xyz>
Subject: bug#62711: Suspend-to-disk with LUKS-encrypted root doesn’t work
Date: Fri, 07 Apr 2023 21:20:39 +0000 [thread overview]
Message-ID: <87mt3jmll0.fsf@posteo.de> (raw)
In-Reply-To: <87y1n3dfsd.fsf@inria.fr>
2023-04-07 14:42 ludo@gnu.org:
> Since my laptop’s battery died, I set up suspend-to-disk as
> documented
> in the manual (info "(guix) Swap Space"). I use a swap file on
> top of
> my LUKS-encrypted root partition, so I added:
>
> "resume=/swap"
> "resume_offset=OFFSET"
I use the following configuration which works fine for me. (Except
sometimes I have to wait for 2-3 minutes for the Linux kernel
modules to get loaded; but that might be due to the special Linux
kernel I'm using.)
#+begin_src scheme
(mapped-devices
(list
(mapped-device
(source
(uuid "SNIP"))
(target "cryptroot")
(type luks-device-mapping))))
(file-systems
(cons
(file-system
(mount-point "/")
(device "/dev/mapper/cryptroot")
(type "ext4")
(dependencies mapped-devices))
%base-file-systems))
(kernel-arguments
(cons*
"resume=/dev/mapper/cryptroot"
"resume_offset=5308416"
%default-kernel-arguments))
#+end_src
next prev parent reply other threads:[~2023-04-07 22:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-07 12:42 bug#62711: Suspend-to-disk with LUKS-encrypted root doesn’t work Ludovic Courtès
2023-04-07 21:20 ` Mekeor Melire [this message]
2023-04-20 10:16 ` Ludovic Courtès
2023-05-20 23:19 ` Ludovic Courtès
2023-04-08 10:18 ` Josselin Poiret via Bug reports for GNU Guix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mt3jmll0.fsf@posteo.de \
--to=mekeor@posteo.de \
--cc=62711@debbugs.gnu.org \
--cc=dev@jpoiret.xyz \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).