Received: (at submit) by debbugs.gnu.org; 3 Feb 2019 16:00:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 03 11:00:02 2019
Received: from localhost ([127.0.0.1]:57723 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1gqKBd-0005Qc-NQ
for submit <at> debbugs.gnu.org; Sun, 03 Feb 2019 11:00:02 -0500
Received: from eggs.gnu.org ([209.51.188.92]:39053)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <david.larsson@HIDDEN>) id 1gqKBb-0005Pg-QJ
for submit <at> debbugs.gnu.org; Sun, 03 Feb 2019 11:00:00 -0500
Received: from lists.gnu.org ([209.51.188.17]:51651)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
(Exim 4.71) (envelope-from <david.larsson@HIDDEN>)
id 1gqKBT-0002sC-Rg
for submit <at> debbugs.gnu.org; Sun, 03 Feb 2019 10:59:53 -0500
Received: from eggs.gnu.org ([209.51.188.92]:53419)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from <david.larsson@HIDDEN>) id 1gqKBS-0003GE-OZ
for bug-guix@HIDDEN; Sun, 03 Feb 2019 10:59:51 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level:
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW,
UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from <david.larsson@HIDDEN>) id 1gqKBQ-0002mX-JN
for bug-guix@HIDDEN; Sun, 03 Feb 2019 10:59:50 -0500
Received: from server0.selfhosted.xyz ([185.147.237.19]:60732)
by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
(Exim 4.71) (envelope-from <david.larsson@HIDDEN>)
id 1gqKBN-0002O2-Px
for bug-guix@HIDDEN; Sun, 03 Feb 2019 10:59:46 -0500
Received: from [127.0.0.1] (localhost [127.0.0.1])
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=selfhosted.xyz;
s=dkim; t=1549209574;
bh=gJfFn2jN6s+Tmf6R5aI13o35B7dL1S53KBn/SHUo0sc=;
h=Date:From:To:cc:Subject:In-Reply-To:References;
b=JGRiGPoxM4o0ln8/Yh0M0Z3R/j+yjgskj/UQSrkTQMmkrBBmzREKTJp0n+YRchsiE
CWBA7b2f7jbyL2DCXEANFD25DwKidYIMW2pX3luKLmv/l1fEmZKXRMRamWQSYEVnKc
eGw3ceyhpJDZppHQ/hXAf0A2zC5++eb/DTJywS/o4k2PS6JUMvE6gMMloBh0jlVwG8
lGsHfbl1zDfOCAfqIG4YLmTTbg1EYiNOj4Im5AbgXWgQuTiYFToGV0JUDpnXLIE10L
U5FfHunKNNwgtirlvG/nl8pVYRtVjU4zXs9tLJVmf4Wc2gJ3T9/NMPAjVhF5YoVKlN
pWiugEfdYtN/Q==
X-Fuglu-Suspect: 1f6a438b4e52464b9462398e997deca6
X-Fuglu-Spamstatus: NO
Received: from [127.0.0.1] (localhost [127.0.0.1])
Date: Sun, 3 Feb 2019 16:59:14 +0100 (CET)
From: david.larsson@HIDDEN
To: swedebugia <swedebugia@HIDDEN>
Subject: Re: bug#34255: wishlist: Add guix-y way to create swapfile
In-Reply-To: <85f0c642-8f24-3b33-ded8-dee9e191f567@HIDDEN>
Message-ID: <alpine.DEB.2.21.1902031644490.55299@Librem13v3>
References: <85f0c642-8f24-3b33-ded8-dee9e191f567@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 185.147.237.19
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
Cc: bug-guix@HIDDEN, 34255 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)
> 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.
Hi,
I just want to give a little warning or tip regarding swapfiles on
btrfs. Generally you can't use swapfiles on btrfs - swapon will throw an
error and btrfs-balance will corrupt the filesystem but with a few
tricks swapfiles actually can be used on btrfs:
https://github.com/sebastian-philipp/btrfs-swapon
Best regards,
David L
bug-guix@HIDDEN:bug#34255; Package guix.
Full text available.
Received: (at 34255) by debbugs.gnu.org; 3 Feb 2019 15:59:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 03 10:59:43 2019
Received: from localhost ([127.0.0.1]:57717 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1gqKBL-0005PK-6R
for submit <at> debbugs.gnu.org; Sun, 03 Feb 2019 10:59:43 -0500
Received: from server0.selfhosted.xyz ([185.147.237.19]:49810)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <david.larsson@HIDDEN>) id 1gqKBI-0005P5-MI
for 34255 <at> debbugs.gnu.org; Sun, 03 Feb 2019 10:59:41 -0500
Received: from [127.0.0.1] (localhost [127.0.0.1])
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=selfhosted.xyz;
s=dkim; t=1549209574;
bh=gJfFn2jN6s+Tmf6R5aI13o35B7dL1S53KBn/SHUo0sc=;
h=Date:From:To:cc:Subject:In-Reply-To:References;
b=JGRiGPoxM4o0ln8/Yh0M0Z3R/j+yjgskj/UQSrkTQMmkrBBmzREKTJp0n+YRchsiE
CWBA7b2f7jbyL2DCXEANFD25DwKidYIMW2pX3luKLmv/l1fEmZKXRMRamWQSYEVnKc
eGw3ceyhpJDZppHQ/hXAf0A2zC5++eb/DTJywS/o4k2PS6JUMvE6gMMloBh0jlVwG8
lGsHfbl1zDfOCAfqIG4YLmTTbg1EYiNOj4Im5AbgXWgQuTiYFToGV0JUDpnXLIE10L
U5FfHunKNNwgtirlvG/nl8pVYRtVjU4zXs9tLJVmf4Wc2gJ3T9/NMPAjVhF5YoVKlN
pWiugEfdYtN/Q==
X-Fuglu-Suspect: 1f6a438b4e52464b9462398e997deca6
X-Fuglu-Spamstatus: NO
Received: from [127.0.0.1] (localhost [127.0.0.1])
Date: Sun, 3 Feb 2019 16:59:14 +0100 (CET)
From: david.larsson@HIDDEN
To: swedebugia <swedebugia@HIDDEN>
Subject: Re: bug#34255: wishlist: Add guix-y way to create swapfile
In-Reply-To: <85f0c642-8f24-3b33-ded8-dee9e191f567@HIDDEN>
Message-ID: <alpine.DEB.2.21.1902031644490.55299@Librem13v3>
References: <85f0c642-8f24-3b33-ded8-dee9e191f567@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 34255
Cc: bug-guix@HIDDEN, 34255 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)
> 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.
Hi,
I just want to give a little warning or tip regarding swapfiles on
btrfs. Generally you can't use swapfiles on btrfs - swapon will throw an
error and btrfs-balance will corrupt the filesystem but with a few
tricks swapfiles actually can be used on btrfs:
https://github.com/sebastian-philipp/btrfs-swapon
Best regards,
David L
bug-guix@HIDDEN:bug#34255; Package guix.
Full text available.
Received: (at submit) by debbugs.gnu.org; 30 Jan 2019 07:48:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 30 02:48:51 2019
Received: from localhost ([127.0.0.1]:51016 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1gokc7-0001Np-7r
for submit <at> debbugs.gnu.org; Wed, 30 Jan 2019 02:48:51 -0500
Received: from eggs.gnu.org ([209.51.188.92]:34246)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <swedebugia@HIDDEN>) id 1gokc5-0001Nb-Eh
for submit <at> debbugs.gnu.org; Wed, 30 Jan 2019 02:48:49 -0500
Received: from lists.gnu.org ([209.51.188.17]:56403)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
(Exim 4.71) (envelope-from <swedebugia@HIDDEN>)
id 1gokbz-00040k-VR
for submit <at> debbugs.gnu.org; Wed, 30 Jan 2019 02:48:44 -0500
Received: from eggs.gnu.org ([209.51.188.92]:48616)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from <swedebugia@HIDDEN>) id 1gokbz-0006BG-4z
for bug-guix@HIDDEN; Wed, 30 Jan 2019 02:48:43 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level:
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW
autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from <swedebugia@HIDDEN>) id 1gokby-0003za-9L
for bug-guix@HIDDEN; Wed, 30 Jan 2019 02:48:42 -0500
Received: from mx1.riseup.net ([198.252.153.129]:46322)
by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
(Exim 4.71) (envelope-from <swedebugia@HIDDEN>)
id 1gokby-0003xs-05
for bug-guix@HIDDEN; Wed, 30 Jan 2019 02:48:42 -0500
Received: from cotinga.riseup.net (cotinga-pn.riseup.net [10.0.1.164])
(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
(Client CN "*.riseup.net",
Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK))
by mx1.riseup.net (Postfix) with ESMTPS id 29C2B1A09E3
for <bug-guix@HIDDEN>; Tue, 29 Jan 2019 23:48:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;
t=1548834514; bh=oK6kJLch9RPNGNlu/OgXKRL7zyqxUR6Ql5kgPFTVSs4=;
h=To:From:Subject:Date:From;
b=mzQUE+HcJ529yMp0l8KrTUlBrd+jFXKcIO7e4yJx2yS1BEErQ5A4sUDJ2iKW0IbHJ
/Ev2ToRh7hqz9PI0OtCiMWvk6877N5umORkteVGTclspG+5Aqr/xRmZ5HNiXG8JDLU
jYQSdCiVgJttu6HYpHdS7gAmSsZhqrBo6IWv60lM=
X-Riseup-User-ID: BE503AB1D64CAE0900D334B2A187ED52BCC9CFE6B597F5E1A80464B8CBD0F132
Received: from [127.0.0.1] (localhost [127.0.0.1])
by cotinga.riseup.net with ESMTPSA id 843744369E
for <bug-guix@HIDDEN>; Tue, 29 Jan 2019 23:48:33 -0800 (PST)
To: bug-guix@HIDDEN
From: swedebugia <swedebugia@HIDDEN>
Subject: wishlist: Add guix-y way to create swapfile
Message-ID: <85f0c642-8f24-3b33-ded8-dee9e191f567@HIDDEN>
Date: Wed, 30 Jan 2019 08:48:29 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 198.252.153.129
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)
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
swedebugia <swedebugia@HIDDEN>:bug-guix@HIDDEN.
Full text available.bug-guix@HIDDEN:bug#34255; Package guix.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.