From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: swap activation of guix system when swap is already active Date: Tue, 16 May 2017 00:07:34 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAQ1r-0008SR-EA for guix-devel@gnu.org; Mon, 15 May 2017 20:07:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dAQ1m-0004d4-FM for guix-devel@gnu.org; Mon, 15 May 2017 20:07:55 -0400 Received: from [195.159.176.226] (port=53523 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dAQ1m-0004cR-8w for guix-devel@gnu.org; Mon, 15 May 2017 20:07:50 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dAQ1Y-0002Vp-UK for guix-devel@gnu.org; Tue, 16 May 2017 02:07:36 +0200 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org 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?