unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Mekeor Melire <mekeor@posteo.de>
Cc: 62711@debbugs.gnu.org, Josselin Poiret <dev@jpoiret.xyz>
Subject: bug#62711: Suspend-to-disk with LUKS-encrypted root doesn’t work
Date: Thu, 20 Apr 2023 12:16:52 +0200	[thread overview]
Message-ID: <87354ux3hn.fsf@gnu.org> (raw)
In-Reply-To: <87mt3jmll0.fsf@posteo.de> (Mekeor Melire's message of "Fri, 07 Apr 2023 21:20:39 +0000")

[-- Attachment #1: Type: text/plain, Size: 243 bytes --]

Hi,

Mekeor Melire <mekeor@posteo.de> skribis:

> (kernel-arguments
>   (cons*
>     "resume=/dev/mapper/cryptroot"

Ooh, got it, that’s the part I got wrong.

Thanks to the two of your for explaining!

How about this change:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 643 bytes --]

diff --git a/doc/guix.texi b/doc/guix.texi
index adb1975935..817b336654 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -17454,6 +17454,17 @@ $ sudo filefrag -e /swapfile | grep '^ *0:' | cut -d: -f3 | cut -d. -f1
    92514304
 @end smallexample
 
+Note that if @file{/swapfile} lives on an encrypted root file system,
+you will instead need to specify the mapped device as the @code{resume}
+argument, like so:
+
+@lisp
+(kernel-arguments
+  (cons* "resume=/dev/mapper/cryptroot"  ;device holding /swapfile
+         "resume_offset=92514304"
+         %default-kernel-arguments))
+@end lisp
+
 @node User Accounts
 @section User Accounts
 

[-- Attachment #3: Type: text/plain, Size: 17 bytes --]


?

Ludo’.

  reply	other threads:[~2023-04-20 10:18 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
2023-04-20 10:16   ` Ludovic Courtès [this message]
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=87354ux3hn.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=62711@debbugs.gnu.org \
    --cc=dev@jpoiret.xyz \
    --cc=mekeor@posteo.de \
    /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).