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 OOR1BKc/MWSdVAEASxT56A (envelope-from ) for ; Sat, 08 Apr 2023 12:19:19 +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 wO1NBKc/MWSIuQAAauVa8A (envelope-from ) for ; Sat, 08 Apr 2023 12:19:19 +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 E15DF1F602 for ; Sat, 8 Apr 2023 12:19:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pl5ey-00083q-4y; Sat, 08 Apr 2023 06:19: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 1pl5ew-00083Q-T9 for bug-guix@gnu.org; Sat, 08 Apr 2023 06:19:02 -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 1pl5ew-0004Dd-LM for bug-guix@gnu.org; Sat, 08 Apr 2023 06:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pl5ew-0007JV-Gx for bug-guix@gnu.org; Sat, 08 Apr 2023 06:19: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: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 08 Apr 2023 10:19: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 62711@debbugs.gnu.org Received: via spool by 62711-submit@debbugs.gnu.org id=B62711.168094911928079 (code B ref 62711); Sat, 08 Apr 2023 10:19:02 +0000 Received: (at 62711) by debbugs.gnu.org; 8 Apr 2023 10:18:39 +0000 Received: from localhost ([127.0.0.1]:57777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pl5eZ-0007Ip-IP for submit@debbugs.gnu.org; Sat, 08 Apr 2023 06:18:39 -0400 Received: from jpoiret.xyz ([206.189.101.64]:37070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pl5eX-0007Ih-Ok for 62711@debbugs.gnu.org; Sat, 08 Apr 2023 06:18:38 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id B392A1851E7; Sat, 8 Apr 2023 10:18:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1680949116; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WTgKi7PVc+pWdMGZGeawQNm1dV0UvIHdN9iO+Aib7pw=; b=AAOUdAgebsFZSTOTImHI1nHb5y/oP/5uDxhcIv9SlZMbzRwf3l943Xq8l52KdfOc3WF7n6 Qgjg8fMVnsntHG6oeWfOp5vM/X+zyHi46JJY9ueoqS75hxhmrf4WlbgkXhs/3Ijm+Fw0/7 nW/XM2QV2+VRHVjmLq7e4+2WoueGz9wTTXDq073AN2gpBPX4jBYWFE4ZwgRiQgO7SuLm+W tYqQuH42sDiym4czFvJjVtPIdChuRH6Nf5Ig7hZdznsBf6IrAWVD14+tK1Hv7L/gYLgOim ED1gWDKjbYwydvUZr7/Ixj9S0hUqdM3k0zH5TGPui1IqVN5B+K5aLA/mtMBcvQ== In-Reply-To: <87y1n3dfsd.fsf@inria.fr> References: <87y1n3dfsd.fsf@inria.fr> Date: Sat, 08 Apr 2023 12:18:28 +0200 Message-ID: <87y1n27k3v.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spamd-Bar: -- 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: , Reply-to: Josselin Poiret From: Josselin Poiret via Bug reports for GNU Guix 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=1680949158; a=rsa-sha256; cv=none; b=gHUA/DI7Unz035t9UqFmQpAs4MjrKA9oqbdtRLH4o1l1DzU1nLvCFzFYEItFyci+ohY55c i75W3+tf6+941V2DkDm+DXTaruw5sUa3/MtR5n8WPtrjFj+Wzg4rBR+0rC+ntZ7bwDMi/K Zr6l0FekoQZMRKXaeLbaWlho+siW/vExV1R5Lrv2KASFvrvKrUArOOunDa4nklKSE0BJa7 JyzkLXXYDwcK/o//BXKUJpqEDq/xBb9YO+7ZQqBu/VuYIL16+092+TDkm2zUTCETufXyFt Rc1KaIJ8gOm8QPS1DLi6QEpLc+XGm2f9ZnrKbAimO7bAtcOAdju7/CKKSViVEg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=AAOUdAge; 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=1680949158; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=WTgKi7PVc+pWdMGZGeawQNm1dV0UvIHdN9iO+Aib7pw=; b=Bw6PU7bYeP9lJ2EBtasAV4Zaizg/QuCGUuH8tmZYtdr5xKE+86FaR/lDGaF47vA0gKiQ+Q etfpTjbyz+QSEircxPgW6AQZYhz7gljyBQ4Wn3bA3in5REsJy5ekQbsAoXow6rwPYD5Yul mkFsgbhMdll7HSdh1sF/RK10kPsSC7J9k5k5HUGtto9a4yJFmMMLe3/tRM3IEx7v9Cb62c O1uOUmSsfqJ5StTVQ/nM5C2jR7UP/m6hzjGo0OVFq4+EV1lgTOxadEgihwK9PmZDHvfDyw 74HsNlqZUwhuy0ixnKY4Uum8YtXU0p7nLRa4htKQOE4II4DYPvq1zSifvmjNLg== X-Migadu-Spam-Score: -5.82 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=AAOUdAge; 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-Spam-Score: -5.82 X-Migadu-Queue-Id: E15DF1F602 X-TUID: k1vby3aFpKx1 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo, Ludovic Court=C3=A8s writes: > Hello! > > Since my laptop=E2=80=99s battery died, I set up suspend-to-disk as docum= ented > in the manual (info "(guix) Swap Space"). I use a swap file on top of > my LUKS-encrypted root partition, so I added: > > "resume=3D/swap" > "resume_offset=3DOFFSET" > > to my =E2=80=98kernel-arguments=E2=80=99 field, where OFFSET is given by = =E2=80=98filefrag=E2=80=99. No file systems are mounted before resuming, otherwise you would get data loss. As mekeor mentioned, you need to pass the actual device that holds the swap file instead, specifying at which offset the file is. I'm starting to think I should set this up as well :) Best, =2D-=20 Josselin Poiret --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHEBAEBCAAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmQxP3UQHGRldkBqcG9p cmV0Lnh5egAKCRBQXkC5FhcaitOmC/oCBJIhIFlPlYS7UeSPOeFAtsf6ZeqcLboA A6kYoiO/rXMjqLrxwvNVbT3xaZt3r0Uc4pQqjlRLzXbkNfHbHyogioBOQZZUr24J 1T556FoUUpCqC3NTL0zlDXJC7xKLzBi6AjRpQnI2OkCWmpAYkro3lFwMZQiKmtja SPKB3c12APS8TBnKnC1uYpwWDnRvurCzdwvTcUkEIUZsvWTum3LQfKu7NxEmzYmJ LTGNN4uiVZbvMp07tqY1HtNd2y4F3fMl65R21F9vGeauVRf2Bse0huZTv3I9GKTk Q1QJNZgd+PhVdmpwhANPaA8+vtKaa76gqxG59t0MwZ2NkVdBFruZ1yPWNc19uKRP JAW72jdAGxIm+WabmJm67S2VLl/jCAiyLnDmyXp+8HBacl6McVdxD148FGQ4yAW8 RFtAzjls8HVG7NCvpmHKrkV/iioxl/yFUyiuKefV/WM+VHWdCojD6ZGSyauwhPnu tYbL+4TXOg+QxgW/+pIvjmc71GZi+SY= =R8U5 -----END PGP SIGNATURE----- --=-=-=--