From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iErsJygUHGJxggEAgWs5BA (envelope-from ) for ; Mon, 28 Feb 2022 01:15:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2EKmICgUHGKb4QAAG6o9tA (envelope-from ) for ; Mon, 28 Feb 2022 01:15:36 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2CB461C21A for ; Mon, 28 Feb 2022 01:15:36 +0100 (CET) Received: from localhost ([::1]:38786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOTKR-0004rX-W3 for larch@yhetil.org; Sun, 27 Feb 2022 18:51:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34768) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOTKG-0004rM-WA for help-guix@gnu.org; Sun, 27 Feb 2022 18:51:41 -0500 Received: from [2a00:1450:4864:20::62c] (port=43531 helo=mail-ej1-x62c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOTKE-0002oT-TM for help-guix@gnu.org; Sun, 27 Feb 2022 18:51:40 -0500 Received: by mail-ej1-x62c.google.com with SMTP id d10so21430940eje.10 for ; Sun, 27 Feb 2022 15:51:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=k4FgM/l1nbzPBs03/0pOGcjmNGQs5bD1JSjaRxx7g/o=; b=cvKgocvDrXlQ4GEGLpH5KRCgyytYyIIEdh0/8txzGNDwzx+C5VHb0UPMa+VRYcp8TX sl+iDbHeIwe3JEXshA8KfxIlzj45kJv2ItcDtMyK5E5UNwmHS3ekKzenKpBxrX+2QfOc A8TTViWQ3M9lTAoxVEIqWqRepOkMqYNUFD6EKgHYKTEw3NwcHi0oUjkP1KZZXLOejT6F 39+DZQ3291GoMdJ6q7pcsZiC85yKxL7uD6GYnitOulswq1Xl8llL5AzC/Jp/XmcI13Y9 JwxyMxJvo5DRsd3kAygLDZAq0+YyN/F+u/EagybFSF9rKLHmaYmvAKK8hA+LVt8Qmdan 8Abg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=k4FgM/l1nbzPBs03/0pOGcjmNGQs5bD1JSjaRxx7g/o=; b=yzel3cFSMXCvSM7EL7rnQZePf+4Pe/rwJLoIglUkCohEucwnmZirYaYcMGHBjxebrv oy7GDwzhRK/BkGaODbLqmiaZ6SytOAClEmo0vFA+9h2GR8P0V1CLG15tltFoMqlpB3a2 /DZQwBdVYnYoJvf/CyxauDYZE7y+n/KtEEpzAI0Stt7AyaAzyUGiQ3IbwI6m9z+50/t1 WiVLwvqZ9NnTNEt8nmX7dQ9QAFQkjSkHZKLSY7nYa5AC/QJPrAEydVOeMcKXYKk3+4hP daaEZGFtI4f/gkVatJS3Q8TLkVWydo0DrVNqslxgUM+jaaUXNob42ehwwSrmmnrK0kH5 C1vA== X-Gm-Message-State: AOAM531s0chhlZcRgE7AWWuUPYn+Vo6DBcJoPgbHlstZJKvWBJsJgGD/ A+xHorCjJr3g0G5K5xl5A17tGYtYVWkcC31BwTrc0A83udU= X-Google-Smtp-Source: ABdhPJyN9NHlklvvPv5ac32DDeFuWxQDKRiulLFbGMh+OV6mVdY6XYxcXXXJLmt+R1wsskbvpJwtJft7eeSwzV86Z7o= X-Received: by 2002:a17:906:f115:b0:6b8:7a29:e60f with SMTP id gv21-20020a170906f11500b006b87a29e60fmr12780405ejb.706.1646005896388; Sun, 27 Feb 2022 15:51:36 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Antwane Mason Date: Sun, 27 Feb 2022 18:51:25 -0500 Message-ID: Subject: Re: Declare swap partition in config To: Tobias Geerinckx-Rice X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::62c (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::62c; envelope-from=ad.mason1413@gmail.com; helo=mail-ej1-x62c.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646007336; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=wzBpraetyjbdxm/kJjKNuRWB5wp7L/eQNZrkX25ei58=; b=EInWRXRHN/4BS2aOzf5tptbnSgJwnui/Jz6NTezD4Y/N/ylTEqYGISHGCySriRCR+ocTjp NqkazRNll3UEvAiwjdn4VodWY0b12Hc5tpUqS74UavCg7UEYFfqt7Ey84uQ4gsPo8V1eju eoSuQWhDTlMFHmDknc+DaPMbUxY/NAfhqJVlrNAOshas7/f5M0Dvvu8Bpn3N0Q6fcm3pFC rGhaQaiz4E7t6xA2AcnRs56lVoTqp1EKqPWEqVZtZ/K8xvOyxjHt6rVyV18fQQPoWcumiW aZfp3KA8Ew9ReykVS8iHpNugv2F6KitZiKH5eTyYyJlTSDK6HD4LOSBq/l7wcQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646007336; a=rsa-sha256; cv=none; b=o1KLIOFTVSSg231WnPE1FT8SUSd3sAZMjsHhm+hMKu0PBtJhyJnr30Hy0jvlIChIYcspcW a0aFOyPmUTromk3IdKw4aoOgr0TCNCFktwXO5pe1cZ5hqEIJh2T0dRzexsJh9ND0rddjGE aKTGETD8vtLj3Zz2q7396L1p/m18Nbmh54uAK8xlV1b+o3wj0Tl8EQRa9koPelmR6G2bgz 1nDNkuBL3IiXRECwR5sKAM7GA8akvlSquUU+4/InITjNx1/HZCYRjqlpL5vvqQ7zzPGJCH B0nVHOHu5BjI2uhsADxaOES0a7UwqZV9iboQti/CEwj/wVi7jKuYzS7AR9/AaQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=cvKgocvD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.40 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=cvKgocvD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2CB461C21A X-Spam-Score: 5.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: vu1/dXgKAJDB Tobias, Thank you for your help! You were right that the partition type was the problem. Calling mkswap did not change the partition's type, but deleting and recreating the partition with the swap type worked. I had to change my config with the new partition's UUID and then do system reconfigure. Now, my swap partition is activated on start as expected! Regards, Antwane On Sat, Feb 26, 2022 at 6:52 PM Tobias Geerinckx-Rice wrote: > On 2022-02-27 0:38, Antwane Mason wrote: > > TYPE="swsuspend" > > You can only swapon(2) swap partitions. Run > > $ sudo mkswap /dev/nvme0n1p4 > > and reboot, and it should work just fine. > > swapon(8) does a lot more than merely call swapon(2), including > overwriting any SWSUSPEND signature[0]. > > Guix does not do this. > > It could, either at the expense of code manually kept in sync with > util-linux, or by embedding a copy swapon(8) in the initrd, enlarging > it. > > Kind regards, > > T G-R > > Sent from a Web browser. Excuse or enjoy my brevity. > > [0]: > > https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/tree/sys-utils/swapon.c#n371 >