unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "Gábor Boskovits" <boskovits@gmail.com>
To: Jesse Gibbons <jgibbons2357@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Specify swap partition by UUID
Date: Mon, 15 Jul 2019 06:45:42 +0000	[thread overview]
Message-ID: <CAE4v=pjU8fQQ+_6TbJN8tNKRCCSMAshUMKs1C2XXCD1rthupSw@mail.gmail.com> (raw)
In-Reply-To: <20190712232109.6ef84603@gmail.com>

Hello,


Jesse Gibbons <jgibbons2357@gmail.com> ezt írta (időpont: 2019. júl. 13.,
Szo, 5:21):

> I recently discovered my current guixsd system does not use my swap
> device, which is a separate drive. I want to specify a UUID. How might
> I accomplish this? I do not want to be too adventurous in case I break
> something and lose everything.
>
>
This currently does not work. You can specify a device, but it is not ideal.
I also tried to used the devmapper by-uuid symlinks, but at the time of
swap activation these are not available yet.

There is two to go about this, one would be to read the swap uuids directly,
and that would be preferred, or modify swap activation to come after the
by-uuid links are available, that would be easier. I believe on the long run
the device specification code in different parts of the config should be as
unified as possible.

I tried the following to no avail:
> ;;;UUID string of swap device
> (define swap-uuid ...)
> ...
>  (swap-devices (list (uuid swap-uuid)))
>
> It complained that it did not get a string.
>
>  (swap-devices (list swap-uuid))
>
> It complained about my swap-uuid not being a file or directory.
>
> Any help would be appreciated.
>
> -Jesse
>
> Best regards,
g_bor

-- 
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21

      reply	other threads:[~2019-07-15  6:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-13  5:21 Specify swap partition by UUID Jesse Gibbons
2019-07-15  6:45 ` Gábor Boskovits [this message]

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='CAE4v=pjU8fQQ+_6TbJN8tNKRCCSMAshUMKs1C2XXCD1rthupSw@mail.gmail.com' \
    --to=boskovits@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=jgibbons2357@gmail.com \
    /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).