all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Antwane Mason <ad.mason1413@gmail.com>
To: Tobias Geerinckx-Rice <me@tobias.gr>
Cc: help-guix@gnu.org
Subject: Re: Declare swap partition in config
Date: Sun, 27 Feb 2022 18:51:25 -0500	[thread overview]
Message-ID: <CAAztfgLfOS_aurynRKm1o8ztALfQRt2cZjZso50WP7gi8Lydvw@mail.gmail.com> (raw)
In-Reply-To: <b3d247fbb9ea46383097743cc6f89167@tobias.gr>

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
>

  reply	other threads:[~2022-02-28  0:15 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
2022-02-27 23:51   ` Antwane Mason [this message]
  -- 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

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

  git send-email \
    --in-reply-to=CAAztfgLfOS_aurynRKm1o8ztALfQRt2cZjZso50WP7gi8Lydvw@mail.gmail.com \
    --to=ad.mason1413@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=me@tobias.gr \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.