From: david.larsson@selfhosted.xyz
To: swedebugia <swedebugia@riseup.net>
Cc: 34255@debbugs.gnu.org
Subject: bug#34255: wishlist: Add guix-y way to create swapfile
Date: Sun, 3 Feb 2019 16:59:14 +0100 (CET) [thread overview]
Message-ID: <alpine.DEB.2.21.1902031644490.55299@Librem13v3> (raw)
In-Reply-To: <85f0c642-8f24-3b33-ded8-dee9e191f567@riseup.net>
> Hi
>
> I specified a swapfile in my config without creating it on disk manually.
>
> (swap-devices '("/swapfile"))
>
> Then I predictably got this error:
>
> guix system: error: exception caught while executing 'start' on service
> 'swap-/swapfile':
> In procedure swapon: "/swapfile": No such file or directory
>
> I think we should let guix do all the dirty work of generating the swapfile
> so we can do something like:
>
> (swap-file
> (file "/swapfile"))
> (size "1G"))
>
> And then guix will invoke the relevant file tools to create and enable the
> swap file.
>
> We could add a check to see if the file exist and if yes try to use it as is.
Hi,
I just want to give a little warning or tip regarding swapfiles on
btrfs. Generally you can't use swapfiles on btrfs - swapon will throw an
error and btrfs-balance will corrupt the filesystem but with a few
tricks swapfiles actually can be used on btrfs:
https://github.com/sebastian-philipp/btrfs-swapon
Best regards,
David L
prev parent reply other threads:[~2019-02-03 16:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-30 7:48 bug#34255: wishlist: Add guix-y way to create swapfile swedebugia
2019-02-03 15:59 ` david.larsson [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=alpine.DEB.2.21.1902031644490.55299@Librem13v3 \
--to=david.larsson@selfhosted.xyz \
--cc=34255@debbugs.gnu.org \
--cc=swedebugia@riseup.net \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).