help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I installed guix with a swap and ... my swap disappeared


From: jean-michel . colin
Subject: I installed guix with a swap and ... my swap disappeared
Date: Sun, 10 Mar 2024 21:58:57 +0100 (CET)

Hello everybody,



my first post here, I come from NixOS but as a lisper it's much more consistent 
for me to use Guix.



So I installed guix on an encrypted ext4 device, from the graphic installer, 
including a swap.

The first time, everything worked, including the swap. 

Until I suspended (one of the purpose of the swap). 

I was not able to recover from the suspended session from the swap, I had to 
open a new session, and ... the swap had disappeared.



>From my config.scm :

(bootloader (bootloader-configuration
                (bootloader grub-bootloader)
                (targets (list "/dev/sda"))
                (keyboard-layout keyboard-layout)))
  (swap-devices (list (swap-space
                        (target (uuid
                                 "here-the-uuid-numebrs-and-letters")))))
  (mapped-devices (list (mapped-device
                          (source (uuid
                                   "here-the-uuid-numebrs-and-letters"))
                          (target "crypthome")
                          (type luks-device-mapping))
                        (mapped-device
                          (source (uuid
                                   "here-the-uuid-numebrs-and-letters"))
                          (target "cryptroot")
                          (type luks-device-mapping))))



some tests I made :

swapon --show
==> no result

cat /proc/swaps
==> no result (except the headers Filename Type etc)

sudo fdisk --list | grep swap
==> /dev/sda3 206301184 225851391 19550208 9.3G Linux swap
==> this is the swap I created, and worked fine right after the install, never 
again after

sudo herd log | grep swap
==> 4 Mar 2024 19:08:05 service swap-74e19e9d-3bba-4154-881f-0c5ad076254b is 
being started
4 Mar 2024 19:08:05 service swap-74e19e9d-3bba-4154-881f-0c5ad076254b failed to 
start





What have I done wrong ?

Should I build again from scratch on another filesystem ? btrfs ?

Tks









reply via email to

[Prev in Thread] Current Thread [Next in Thread]