unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ng0 <ng0@pragmatique.xyz>
To: guix-devel@gnu.org
Subject: swap activation of guix system when swap is already active
Date: Tue, 16 May 2017 00:07:34 +0000	[thread overview]
Message-ID: <nycvar.YAK.7.76.1705160003410.20926@ybpnyubfg> (raw)

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?

             reply	other threads:[~2017-05-16  0:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-16  0:07 ng0 [this message]
2017-05-16  6:44 ` swap activation of guix system when swap is already active Vincent Legoll

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=nycvar.YAK.7.76.1705160003410.20926@ybpnyubfg \
    --to=ng0@pragmatique.xyz \
    --cc=guix-devel@gnu.org \
    /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).