unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* swap activation of guix system when swap is already active
@ 2017-05-16  0:07 ng0
  2017-05-16  6:44 ` Vincent Legoll
  0 siblings, 1 reply; 2+ messages in thread
From: ng0 @ 2017-05-16  0:07 UTC (permalink / raw)
  To: guix-devel

Imagine you create a swap(file,partition). You forget to activate it
for some time in the system. Then you activate it manually. In the same
session you add it to the system config as (swap-devices '("/dev/sda5")).
Then you run reconfigure.
Now you experience this, because obviously the device is busy.

guix system: loading new services: swap-/dev/sda5 user-homes git-daemon...
shepherd: Evaluating user expression (register-services (primitive-load 
"/gn...") ...).
guix system: error: exception caught while executing 'start' on service 
'swap-/dev/sda5':
ERROR: In procedure swapon: "/dev/sda5": Device or resource busy


Shouldn't we 'swapoff' before 'swapon' so that the device can be 
'swapon' in the system generation?

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

* Re: swap activation of guix system when swap is already active
  2017-05-16  0:07 swap activation of guix system when swap is already active ng0
@ 2017-05-16  6:44 ` Vincent Legoll
  0 siblings, 0 replies; 2+ messages in thread
From: Vincent Legoll @ 2017-05-16  6:44 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

> Shouldn't we 'swapoff' before 'swapon' so that the device can be 'swapon' in
> the system generation?

If you do that after checking that the swap device / file is already
on, you cloud also
just do nothing then, I'm not sure there's anything to be gained by
doing off+on...

WDYT ?

-- 
Vincent Legoll

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

end of thread, other threads:[~2017-05-16  6:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-16  0:07 swap activation of guix system when swap is already active ng0
2017-05-16  6:44 ` Vincent Legoll

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