From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: Specify swap partition by UUID Date: Mon, 15 Jul 2019 06:45:42 +0000 Message-ID: References: <20190712232109.6ef84603@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47190) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmukQ-0003MQ-Ot for help-guix@gnu.org; Mon, 15 Jul 2019 02:46:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hmukP-0007XZ-FW for help-guix@gnu.org; Mon, 15 Jul 2019 02:46:06 -0400 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:32955) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hmukO-0007Th-OE for help-guix@gnu.org; Mon, 15 Jul 2019 02:46:05 -0400 Received: by mail-ed1-x52d.google.com with SMTP id i11so14267109edq.0 for ; Sun, 14 Jul 2019 23:45:55 -0700 (PDT) In-Reply-To: <20190712232109.6ef84603@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Jesse Gibbons Cc: help-guix Hello, Jesse Gibbons ezt =C3=ADrta (id=C5=91pont: 2019. j= =C3=BAl. 13., Szo, 5:21): > I recently discovered my current guixsd system does not use my swap > device, which is a separate drive. I want to specify a UUID. How might > I accomplish this? I do not want to be too adventurous in case I break > something and lose everything. > > This currently does not work. You can specify a device, but it is not ideal= . I also tried to used the devmapper by-uuid symlinks, but at the time of swap activation these are not available yet. There is two to go about this, one would be to read the swap uuids directly= , and that would be preferred, or modify swap activation to come after the by-uuid links are available, that would be easier. I believe on the long ru= n the device specification code in different parts of the config should be as unified as possible. I tried the following to no avail: > ;;;UUID string of swap device > (define swap-uuid ...) > ... > (swap-devices (list (uuid swap-uuid))) > > It complained that it did not get a string. > > (swap-devices (list swap-uuid)) > > It complained about my swap-uuid not being a file or directory. > > Any help would be appreciated. > > -Jesse > > Best regards, g_bor --=20 OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21