GNU bug report logs -
#34255
wishlist: Add guix-y way to create swapfile
Previous Next
To reply to this bug, email your comments to 34255 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#34255
; Package
guix
.
(Wed, 30 Jan 2019 07:49:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
swedebugia <swedebugia <at> riseup.net>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Wed, 30 Jan 2019 07:49:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
--
Cheers
Swedebugia
Information forwarded
to
bug-guix <at> gnu.org
:
bug#34255
; Package
guix
.
(Sun, 03 Feb 2019 16:00:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 34255 <at> debbugs.gnu.org (full text, mbox):
> 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
Information forwarded
to
bug-guix <at> gnu.org
:
bug#34255
; Package
guix
.
(Sun, 03 Feb 2019 16:00:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 129 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.