help-guix
[Top][All Lists]
Advanced

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

Re: Declare swap partition in config


From: Tobias Geerinckx-Rice
Subject: Re: Declare swap partition in config
Date: Sun, 27 Feb 2022 00:52:19 +0100

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



reply via email to

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