GNU bug report logs - #34255
wishlist: Add guix-y way to create swapfile

Previous Next

Package: guix;

Reported by: swedebugia <swedebugia <at> riseup.net>

Date: Wed, 30 Jan 2019 07:49:02 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: swedebugia <swedebugia <at> riseup.net>
To: 34255 <at> debbugs.gnu.org
Subject: bug#34255: wishlist: Add guix-y way to create swapfile
Date: Wed, 30 Jan 2019 08:48:29 +0100
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




This bug report was last modified 6 years and 131 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.