From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id AGtoBGgRQWSACQAASxT56A (envelope-from ) for ; Thu, 20 Apr 2023 12:18:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8N5jBGgRQWQABwEAauVa8A (envelope-from ) for ; Thu, 20 Apr 2023 12:18:16 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B949A1B3CD for ; Thu, 20 Apr 2023 12:18:15 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppRMa-0000Ag-Uu; Thu, 20 Apr 2023 06:18:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppRMZ-00006X-98 for bug-guix@gnu.org; Thu, 20 Apr 2023 06:18:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ppRMZ-00011B-03 for bug-guix@gnu.org; Thu, 20 Apr 2023 06:18:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ppRMY-0005Jd-BS for bug-guix@gnu.org; Thu, 20 Apr 2023 06:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#62711: Suspend-to-disk with LUKS-encrypted root =?UTF-8?Q?doesn=E2=80=99t?= work Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 20 Apr 2023 10:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62711 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mekeor Melire Cc: 62711@debbugs.gnu.org, Josselin Poiret Received: via spool by 62711-submit@debbugs.gnu.org id=B62711.168198582320355 (code B ref 62711); Thu, 20 Apr 2023 10:18:02 +0000 Received: (at 62711) by debbugs.gnu.org; 20 Apr 2023 10:17:03 +0000 Received: from localhost ([127.0.0.1]:36656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppRLb-0005IF-FM for submit@debbugs.gnu.org; Thu, 20 Apr 2023 06:17:03 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51048) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppRLY-0005Hd-Vx for 62711@debbugs.gnu.org; Thu, 20 Apr 2023 06:17:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppRLS-0000l6-OA; Thu, 20 Apr 2023 06:16:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=4F1ZIZuSVVN71ArLRbQ9jMrn7vC6YTX8+/7KGTDNjkI=; b=Vhc/rym8ZzJE6zvN4mDe Bka/T0JSHb0kuC8ag6sNZIcM3tC8WopgvnG9urXS1Uyd3IpcaSi48XNYwi4UzjUai+JwSkscix5c9 bCvD1AhVSdErmZXWQ07e/4FtgzqpttD9W5/VScEM88M815pkyPT5JOZniCmmq8Is/1tixjdqQxEiJ UkGu67NelxKG3Cc9gfZS7iBflCLiOPMLoISiR7diRiOlFMqxY8Aw7m8eeJcoVFqL37L03LhB7Q0ta nMbuwDaO0JsGVbDOSxCyg9O4L9GzEIr8I3rigBMJJFXe0C4nY84OQwIa7houcbje4VlDlVd7RDCtA sox4vj/iwEDOKw==; Received: from [193.50.110.118] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppRLS-0004AQ-Aq; Thu, 20 Apr 2023 06:16:54 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87y1n3dfsd.fsf@inria.fr> <87mt3jmll0.fsf@posteo.de> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Primidi 1 =?UTF-8?Q?Flor=C3=A9al?= an 231 de la =?UTF-8?Q?R=C3=A9volution,?= jour de la Rose X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 20 Apr 2023 12:16:52 +0200 In-Reply-To: <87mt3jmll0.fsf@posteo.de> (Mekeor Melire's message of "Fri, 07 Apr 2023 21:20:39 +0000") Message-ID: <87354ux3hn.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681985895; a=rsa-sha256; cv=none; b=Ii9yq/GOastWC/qNhPH9RD8iuiCaPqNn5ZXwexb9mH4zqXgkh4+V8om8rAPXPrNxYwXBgf 5TdoR7ry0TGFOCccbJzWNHWOa1oiqj3Uby5f0Wk1Ep6dXK3YMNcEsDXUhNZvNSrIMIDgHR 91QzxQK9ZQHjaiknjzbVQSms12KekR5MxmgSPuDWjluXGA43gyaeZJAt49M1xojzN5Expj LxH0d5T/OUtORIoi+qd1D17Iv90Oc2AYeNEIk/fsHBrZn+hbwumKRFEJApTY5JD0CW3hMi yTWT3j72B77z9OnFie/GokUAY/OTmY4teNjBLT0s0+y5VDR81oFx2V8hTyCV9Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="Vhc/rym8"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681985895; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=4F1ZIZuSVVN71ArLRbQ9jMrn7vC6YTX8+/7KGTDNjkI=; b=bT3nBFwdGTuCY5svszZScoO0JIa7E3Lr6Q78v4dWcCLeA1i6kCxhRSdLuYGWZI4OABxocV WVJdL/xcTayDVrSZo59hrc/SDkCXF3V4LLe1GvYf4rOAKTuNQf1XHAjd5OGI0wHsvGiF/1 HUDBXpXArQ3RKog7gtVJItqLQI6PkdNBCaedr6LYvjabRcuptGvUFdZS8Mi4WtvCHoJ0e5 kvuUPxq2ZrrR4A70Jsn7zP4cgZjX+ae+QozPhjrxmU6eYYb01fs5hVfDQpOYk3Zi4XM3by nZs7J6QruoqbeccEBYfW4+ymDXliWd4tO56JvzUbZ9hx2moMGnNMrOpLphOn4Q== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.51 X-Spam-Score: -2.51 X-Migadu-Queue-Id: B949A1B3CD Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="Vhc/rym8"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-TUID: eEzVSLRKp/oy --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Mekeor Melire skribis: > (kernel-arguments > (cons* > "resume=3D/dev/mapper/cryptroot" Ooh, got it, that=E2=80=99s the part I got wrong. Thanks to the two of your for explaining! How about this change: --=-=-= Content-Type: text/x-patch Content-Disposition: inline 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 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 DQo/DQoNCkx1ZG/igJkuDQo= --=-=-=--