unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Tobias Geerinckx-Rice <me@tobias.gr>
To: Antwane Mason <ad.mason1413@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Declare swap partition in config
Date: Sun, 27 Feb 2022 00:52:19 +0100	[thread overview]
Message-ID: <b3d247fbb9ea46383097743cc6f89167@tobias.gr> (raw)
In-Reply-To: <CAAztfgJCN_-y2uty7Wg4bFh4zpzCAZhRYqW5dy+KgVLqn785nQ@mail.gmail.com>

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	other threads:[~2022-02-26 23:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-26 23:38 Declare swap partition in config Antwane Mason
2022-02-26 23:52 ` Tobias Geerinckx-Rice [this message]
2022-02-27 23:51   ` Antwane Mason
  -- strict thread matches above, loose matches on Subject: below --
2019-09-13 15:47 w96k
2019-09-13 16:15 ` Julien Lepiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b3d247fbb9ea46383097743cc6f89167@tobias.gr \
    --to=me@tobias.gr \
    --cc=ad.mason1413@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).