From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 07 08:43:05 2023 Received: (at submit) by debbugs.gnu.org; 7 Apr 2023 12:43:05 +0000 Received: from localhost ([127.0.0.1]:55938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pklQm-0000Lz-O6 for submit@debbugs.gnu.org; Fri, 07 Apr 2023 08:43:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:48282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pklQk-0000Lr-84 for submit@debbugs.gnu.org; Fri, 07 Apr 2023 08:43:02 -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 1pklQj-0003UU-R0 for bug-guix@gnu.org; Fri, 07 Apr 2023 08:43:01 -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 1pklQj-0007wV-EF for bug-guix@gnu.org; Fri, 07 Apr 2023 08:43:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=dsZNNh/4x+HfJfVgJd7onGZqG8S5RPudRTwdTWj6s84=; b=lXQ5ctBx/vqhvN 0DC1NMhCFe8unB3M/k2Qo2JwcaLy/QW9KN66CxqtN9SonHqMr6cuP8kfpiHCdMCO/zzg0T2n9GHLU nWuS2RZp9vtUCWCWEv4pVYHtvWp+xA1A0wTaNxO7UEXbkOXPMw5dA7fjbjQ78u+2a6HyI46a1G+cW gtqHZ4Q8c40HOB45eYN4+6+z64ceZYdtdwpuad4/FzHds0yUxR0YyQ8MYExjsmFcMLG1MjYafp6vq 19fltxRfPM03JvtNtxhNrS6K8mTDvB7kKqKGH460TjpzPgmIVivlVLfA7xlAp6ty8cuK7JPyT7DwA AEHFefVj16RnFxDkKGjA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pklQj-0002UJ-09 for bug-guix@gnu.org; Fri, 07 Apr 2023 08:43:01 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: bug-guix@gnu.org Subject: Suspend-to-disk with LUKS-encrypted root =?utf-8?Q?doesn=E2=80=99?= =?utf-8?Q?t?= work X-Debbugs-Cc: Josselin Poiret X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Octidi 18 Germinal an 231 de la =?utf-8?Q?R=C3=A9vol?= =?utf-8?Q?ution=2C?= jour de la =?utf-8?Q?Cigu=C3=AB?= 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: Fri, 07 Apr 2023 14:42:58 +0200 Message-ID: <87y1n3dfsd.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello! Since my laptop=E2=80=99s battery died, I set up suspend-to-disk as documen= ted 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. However, when resuming, it looks as though the kernel is not even trying to resume: --8<---------------cut here---------------start------------->8--- Apr 7 14:29:47 localhost vmunix: [ 0.000000] Linux version 6.2.9-gnu (g= uix@guix) (gcc (GCC) 10.3.0, GNU ld (GNU Binutils) 2.37) #1 SMP PREEMPT_DYN= AMIC 1 Apr 7 14:29:47 localhost vmunix: [ 0.000000] Command line: BOOT_IMAGE= =3D/gnu/store/6441f00fkyg1r6jpj7f0qpa798svsggv-linux-libre-6.2.9/bzImage ro= ot=3Droot gnu.system=3D/gnu/store/rsv7gc69ishn0cvd8151083i367zp0v2-system g= nu.load=3D/gnu/store/rsv7gc69ishn0cvd8151083i367zp0v2-system/boot modprobe.= blacklist=3Dusbmouse,usbkbd,iwlwifi resume=3D/swap resume_offset=3D11878672= 9 quiet Apr 7 14:29:47 localhost vmunix: [ 0.000000] KERNEL supported cpus: Apr 7 14:29:47 localhost vmunix: [ 0.000000] Intel GenuineIntel Apr 7 14:29:47 localhost vmunix: [ 0.000000] AMD AuthenticAMD [...] Apr 7 14:29:47 localhost vmunix: [ 0.043725] smpboot: Allowing 4 CPUs, = 0 hotplug CPUs Apr 7 14:29:47 localhost vmunix: [ 0.043748] PM: hibernation: Registere= d nosave memory: [mem 0x00000000-0x00000fff] Apr 7 14:29:47 localhost vmunix: [ 0.043750] PM: hibernation: Registere= d nosave memory: [mem 0x00058000-0x00058fff] Apr 7 14:29:47 localhost vmunix: [ 0.043753] PM: hibernation: Registere= d nosave memory: [mem 0x0009e000-0x0009efff] Apr 7 14:29:47 localhost vmunix: [ 0.043755] PM: hibernation: Registere= d nosave memory: [mem 0x000a0000-0x000fffff] Apr 7 14:29:47 localhost vmunix: [ 0.043757] PM: hibernation: Registere= d nosave memory: [mem 0xb8a36000-0xb8a3dfff] Apr 7 14:29:47 localhost vmunix: [ 0.043759] PM: hibernation: Registere= d nosave memory: [mem 0xc70fb000-0xc75fafff] Apr 7 14:29:47 localhost vmunix: [ 0.043760] PM: hibernation: Registere= d nosave memory: [mem 0xc75fb000-0xc7c7efff] Apr 7 14:29:47 localhost vmunix: [ 0.043761] PM: hibernation: Registere= d nosave memory: [mem 0xc7c7f000-0xc7e7efff] Apr 7 14:29:47 localhost vmunix: [ 0.043762] PM: hibernation: Registere= d nosave memory: [mem 0xc7e7f000-0xc7efefff] Apr 7 14:29:47 localhost vmunix: [ 0.043764] PM: hibernation: Registere= d nosave memory: [mem 0xc7f00000-0xcc7fffff] Apr 7 14:29:47 localhost vmunix: [ 0.043765] PM: hibernation: Registere= d nosave memory: [mem 0xcc800000-0xf80f9fff] Apr 7 14:29:47 localhost vmunix: [ 0.043766] PM: hibernation: Registere= d nosave memory: [mem 0xf80fa000-0xf80fafff] Apr 7 14:29:47 localhost vmunix: [ 0.043767] PM: hibernation: Registere= d nosave memory: [mem 0xf80fb000-0xf80fcfff] Apr 7 14:29:47 localhost vmunix: [ 0.043768] PM: hibernation: Registere= d nosave memory: [mem 0xf80fd000-0xf80fdfff] Apr 7 14:29:47 localhost vmunix: [ 0.043768] PM: hibernation: Registere= d nosave memory: [mem 0xf80fe000-0xfdffffff] Apr 7 14:29:47 localhost vmunix: [ 0.043769] PM: hibernation: Registere= d nosave memory: [mem 0xfe000000-0xfe010fff] Apr 7 14:29:47 localhost vmunix: [ 0.043770] PM: hibernation: Registere= d nosave memory: [mem 0xfe011000-0xffffffff] Apr 7 14:29:47 localhost vmunix: [ 0.043772] [mem 0xcc800000-0xf80f9fff= ] available for PCI devices Apr 7 14:29:47 localhost vmunix: [ 0.043773] Booting paravirtualized ke= rnel on bare hardware Apr 7 14:29:47 localhost vmunix: [ 0.043775] clocksource: refined-jiffi= es: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 = ns Apr 7 14:29:47 localhost vmunix: [ 0.043785] setup_percpu: NR_CPUS:256 = nr_cpumask_bits:4 nr_cpu_ids:4 nr_node_ids:1 Apr 7 14:29:47 localhost vmunix: [ 0.044150] percpu: Embedded 57 pages/= cpu s194792 r8192 d30488 u524288 Apr 7 14:29:47 localhost vmunix: [ 0.044189] Fallback order for Node 0:= 0=20 Apr 7 14:29:47 localhost vmunix: [ 0.044192] Built 1 zonelists, mobilit= y grouping on. Total pages: 4098520 Apr 7 14:29:47 localhost vmunix: [ 0.044193] Policy zone: Normal Apr 7 14:29:47 localhost vmunix: [ 0.044194] Kernel command line: BOOT_= IMAGE=3D/gnu/store/6441f00fkyg1r6jpj7f0qpa798svsggv-linux-libre-6.2.9/bzIma= ge root=3Droot gnu.system=3D/gnu/store/rsv7gc69ishn0cvd8151083i367zp0v2-sys= tem gnu.load=3D/gnu/store/rsv7gc69ishn0cvd8151083i367zp0v2-system/boot modp= robe.blacklist=3Dusbmouse,usbkbd,iwlwifi resume=3D/swap resume_offset=3D118= 786729 quiet Apr 7 14:29:47 localhost vmunix: [ 0.044318] Unknown kernel command lin= e parameters "BOOT_IMAGE=3D/gnu/store/6441f00fkyg1r6jpj7f0qpa798svsggv-linu= x-libre-6.2.9/bzImage", will be passed to user space. Apr 7 14:29:47 localhost vmunix: [ 0.044342] random: crng init done [...] Apr 7 14:29:47 localhost vmunix: [ 0.946203] sd 2:0:0:0: Attached scsi = generic sg0 type 0 Apr 7 14:29:47 localhost vmunix: [ 0.946436] sd 2:0:0:0: [sda] 10002152= 16 512-byte logical blocks: (512 GB/477 GiB) Apr 7 14:29:47 localhost vmunix: [ 0.946447] sd 2:0:0:0: [sda] 4096-byt= e physical blocks Apr 7 14:29:47 localhost vmunix: [ 0.946490] sd 2:0:0:0: [sda] Write Pr= otect is off Apr 7 14:29:47 localhost vmunix: [ 0.946722] sd 2:0:0:0: [sda] Write ca= che: enabled, read cache: enabled, doesn't support DPO or FUA Apr 7 14:29:47 localhost vmunix: [ 0.946873] sd 2:0:0:0: [sda] Preferre= d minimum I/O size 4096 bytes Apr 7 14:29:47 localhost vmunix: [ 0.969038] sda: sda1 sda2 sda3 Apr 7 14:29:47 localhost vmunix: [ 0.969435] sd 2:0:0:0: [sda] Attached= SCSI disk Apr 7 14:29:47 localhost vmunix: [ 0.974847] usbcore: registered new in= terface driver usb-storage [...] Apr 7 14:29:47 localhost vmunix: [ 2.106128] usb 1-9: Manufacturer: Gen= eric Apr 7 14:29:47 localhost vmunix: [ 2.106132] usb 1-9: SerialNumber: 200= 901010001 Apr 7 14:29:47 localhost vmunix: [ 13.073755] EXT4-fs (dm-0): mounted fi= lesystem d25675c9-c26a-487d-a6e4-0bab06b2474b with ordered data mode. Quota= mode: none. Apr 7 14:29:47 localhost vmunix: [ 14.350824] shepherd[1]: Starting serv= ice root... Apr 7 14:29:47 localhost vmunix: [ 14.351331] shepherd[1]: Service root = started. Apr 7 14:29:47 localhost vmunix: [ 14.351787] shepherd[1]: Service root = running with value #t. Apr 7 14:29:47 localhost vmunix: [ 14.353268] shepherd[1]: Service root = has been started. Apr 7 14:29:47 localhost vmunix: [ 14.806435] shepherd[1]: starting serv= ices... Apr 7 14:29:47 localhost vmunix: [ 14.810401] shepherd[1]: Starting serv= ice user-file-systems... Apr 7 14:29:47 localhost vmunix: [ 14.813909] shepherd[1]: Starting serv= ice root-file-system... Apr 7 14:29:47 localhost vmunix: [ 14.814404] shepherd[1]: Starting serv= ice host-name... Apr 7 14:29:47 localhost vmunix: [ 14.815015] shepherd[1]: Starting serv= ice sysctl... Apr 7 14:29:47 localhost vmunix: [ 14.815373] shepherd[1]: Starting serv= ice loopback... --8<---------------cut here---------------end--------------->8--- Hibernation (with =E2=80=98echo disk > /sys/power/state=E2=80=99) did seem = to succeed, with this one message: --8<---------------cut here---------------start------------->8--- Apr 7 12:39:30 localhost vmunix: [14219.893014] PM: hibernation: hibernati= on entry --8<---------------cut here---------------end--------------->8--- Am I missing something? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 07 17:27:06 2023 Received: (at 62711) by debbugs.gnu.org; 7 Apr 2023 21:27:06 +0000 Received: from localhost ([127.0.0.1]:57305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pktbu-0008L3-9C for submit@debbugs.gnu.org; Fri, 07 Apr 2023 17:27:06 -0400 Received: from mout01.posteo.de ([185.67.36.65]:54891) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pktbs-0008Ka-BH for 62711@debbugs.gnu.org; Fri, 07 Apr 2023 17:27:04 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9F00F240214 for <62711@debbugs.gnu.org>; Fri, 7 Apr 2023 23:26:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1680902818; bh=iHVpvBraKxvezLekKa+rFe9c2KAB6DQiHJsdZDc0IP0=; h=From:To:Cc:Subject:Date:From; b=Bjzd0UdFoTjGw6dJdUorlVjYrmVlGqNUTBXqijJtj7r7e8av/1yfEFMzQ/H0qqiXK WY91Ct7MMsfQWbdiWz1iUpXOZNu0R7nSRLbNZpzo8TDcpzaKTdzh0/h9pUw6dF+rlX 159K83VoqXtdPE67DhPsOhvaNsXCLvIiv5LIlIYc/DyXbq8WCmJ33mb/msnfyxoDPv 112BTMroFhbw+XA4DlSc4kRRD3uLMBS61nAjaHKHRN9CkUbZPj4gQ6lSkXUpWsfwA6 EW9W38OAtFuVib0Plk1kHKA9OFjVmtc176BU4EvoHSU6Xw/aYY0ZDoxRQP4KDT8TBN G/ndc3+tIsLIw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PtWf93KN9z9rxG; Fri, 7 Apr 2023 23:26:57 +0200 (CEST) References: <87y1n3dfsd.fsf@inria.fr> From: Mekeor Melire To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#62711: Suspend-to-disk with LUKS-encrypted root =?utf-8?Q?doesn=E2=80=99t?= work Date: Fri, 07 Apr 2023 21:20:39 +0000 In-reply-to: <87y1n3dfsd.fsf@inria.fr> Message-ID: <87mt3jmll0.fsf@posteo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62711 Cc: 62711@debbugs.gnu.org, Josselin Poiret X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 2023-04-07 14:42 ludo@gnu.org: > Since my laptop=E2=80=99s battery died, I set up suspend-to-disk as=20 > documented > in the manual (info "(guix) Swap Space"). I use a swap file on=20 > top of > my LUKS-encrypted root partition, so I added: > > "resume=3D/swap" > "resume_offset=3DOFFSET" I use the following configuration which works fine for me. (Except=20 sometimes I have to wait for 2-3 minutes for the Linux kernel=20 modules to get loaded; but that might be due to the special Linux=20 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=3D/dev/mapper/cryptroot" "resume_offset=3D5308416" %default-kernel-arguments)) #+end_src From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 08 06:18:39 2023 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== From: Josselin Poiret To: Ludovic =?utf-8?Q?Court=C3=A8s?= , 62711@debbugs.gnu.org Subject: Re: bug#62711: Suspend-to-disk with LUKS-encrypted root =?utf-8?Q?doesn=E2=80=99t?= work 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" Authentication-Results: jpoiret.xyz; auth=pass smtp.auth=jpoiret@jpoiret.xyz smtp.mailfrom=dev@jpoiret.xyz X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62711 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --=-=-= 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----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 20 06:17:03 2023 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Mekeor Melire Subject: Re: bug#62711: Suspend-to-disk with LUKS-encrypted root =?utf-8?Q?doesn=E2=80=99t?= work 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=2C?= 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62711 Cc: 62711@debbugs.gnu.org, Josselin Poiret X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= 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= --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat May 20 19:19:59 2023 Received: (at 62711-done) by debbugs.gnu.org; 20 May 2023 23:19:59 +0000 Received: from localhost ([127.0.0.1]:59596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0VrW-0003C9-8Z for submit@debbugs.gnu.org; Sat, 20 May 2023 19:19:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0VrU-0003Bw-RH for 62711-done@debbugs.gnu.org; Sat, 20 May 2023 19:19:45 -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 1q0VrP-0003NY-91; Sat, 20 May 2023 19:19:39 -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=YILat+UKcSJgaxHJFwye8KzVIpvMEc1rGl9DVGxqgNA=; b=Ew8kNhMR834+w4V1J8q3 5c4qxjYoqWYJV2prPyOk1TUnjVicn5MhA4r27e/aleV9pvUXMvxF7WJ+Hv1UPvVgpqE7sEsXvDd81 KA5tq5tjpKcycJFvFeKZly8aMsvKT77BnC7AQrP6cZpRAQW38vSPkSxlJbppxykMkZPxUdjkYvAwL fDzUa8MfFO90yaaOTK2sZz04w7dloeghJ2ashyuVrNbfLJ/wbc5ioeNg+ws6rvRVTFkSVDmPolZyK HtOr61H8QlfxUDxvlfS6gv5wsmSsoqgiLiCIrw5bfXtIXb3zjFVYzHxjRV12l6sl4eC72jFpYK4Rb ei5OLNoxMpkljQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0VrO-0002lX-Rr; Sat, 20 May 2023 19:19:39 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Mekeor Melire Subject: Re: bug#62711: Suspend-to-disk with LUKS-encrypted root =?utf-8?Q?doesn=E2=80=99t?= work References: <87y1n3dfsd.fsf@inria.fr> <87mt3jmll0.fsf@posteo.de> <87354ux3hn.fsf@gnu.org> Date: Sun, 21 May 2023 01:19:37 +0200 In-Reply-To: <87354ux3hn.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Thu, 20 Apr 2023 12:16:52 +0200") Message-ID: <87fs7qvbee.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62711-done Cc: 62711-done@debbugs.gnu.org, Josselin Poiret X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Ludovic Court=C3=A8s skribis: > 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: I finally pushed a simpler change as commit 7d1d5e16da6f1b37b3e0c16adf44b8e305e1e5bd. Ludo=E2=80=99. From unknown Wed Aug 20 01:21:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 18 Jun 2023 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator