[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Declare swap partition in config
From: |
Antwane Mason |
Subject: |
Re: Declare swap partition in config |
Date: |
Sun, 27 Feb 2022 18:51:25 -0500 |
Tobias,
Thank you for your help! You were right that the partition type was the
problem.
Calling mkswap did not change the partition's type, but deleting and
recreating the partition with the swap type worked. I had to change my
config with the new partition's UUID and then do system reconfigure.
Now, my swap partition is activated on start as expected!
Regards,
Antwane
On Sat, Feb 26, 2022 at 6:52 PM Tobias Geerinckx-Rice <me@tobias.gr> wrote:
> On 2022-02-27 0:38, Antwane Mason wrote:
> > TYPE="swsuspend"
>
> You can only swapon(2) swap partitions. Run
>
> $ sudo mkswap /dev/nvme0n1p4
>
> and reboot, and it should work just fine.
>
> swapon(8) does a lot more than merely call swapon(2), including
> overwriting any SWSUSPEND signature[0].
>
> Guix does not do this.
>
> It could, either at the expense of code manually kept in sync with
> util-linux, or by embedding a copy swapon(8) in the initrd, enlarging
> it.
>
> Kind regards,
>
> T G-R
>
> Sent from a Web browser. Excuse or enjoy my brevity.
>
> [0]:
>
> https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/tree/sys-utils/swapon.c#n371
>