unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#34255: wishlist: Add guix-y way to create swapfile
@ 2019-01-30  7:48 swedebugia
  2019-02-03 15:59 ` david.larsson
  0 siblings, 1 reply; 2+ messages in thread
From: swedebugia @ 2019-01-30  7:48 UTC (permalink / raw)
  To: 34255

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-03 16:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-30  7:48 bug#34255: wishlist: Add guix-y way to create swapfile swedebugia
2019-02-03 15:59 ` david.larsson

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).