From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QLbdEmrhWmc92wAA62LTzQ:P1 (envelope-from ) for ; Thu, 12 Dec 2024 13:13:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id QLbdEmrhWmc92wAA62LTzQ (envelope-from ) for ; Thu, 12 Dec 2024 14:13:14 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=rHiqvnLM; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=KbP60UBb; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734009194; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=krsKJ/QsZs8ApbF6wQLCvrjwqzMQVIw28RbAOO4WAXQ=; b=PAtaI7os79Nhxln+MpzTgWTearWObSp9duXjNYjbm00qaN4+9KmOcXKrAdCqNa4e3am5X1 qoVNQH3tROry+1TwzBm6YwHpX3l9NjqTCTrjwhgrlAUWhXrvsFpeOK4MdBz/k/dnOie5pP XUmnRHlNYRqFQ8aJqYEiVW+QPFEdfQFhk3eQzu7HTdvS2oolAm1nlrkuXbyCI+//4i1cBy naxo9w6SSJjOuLOyrd5//2RGygIGU0/d1mivGPtc9hkIzGDMSNxc0SDDtteBW/z0I4KjHF MH4WgCIuE2yfCUpV5WQkBelGX6uVvrFqsWu5ePkegIVrLEszUKaRs93N14yfsQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=rHiqvnLM; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=KbP60UBb; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734009194; a=rsa-sha256; cv=none; b=IitfVtisaGhRiNjEwBl1VII35FoUU8m3CR/mcKlx8u+WkddAMsYRolrEB8ozslJaXUgjaL d791pWYkBz51jmJg8PGYip7rHgcJhVHVLgC4CseaGuxL1ZG7tWKS3TP8LQtMwKiB5kaUbQ KOSjX8+G9Q9u4/wA7EibgERiqiALgsFMDbZoZedmUJDTiqo1GPuUTpQbBxtz3Nym14NPqd JLC/WsNvJ2jYUJ5xD1Cvw5psmo6CFDemmh7dtD9uK2H/R+xPLK5uekAvyq9Ti3QKAoZ8yw Ugv26YzYNmIumnvtpfsllFYFWV5yUmDNMyikcKnx/85DXVM1yZhRp8s9d982RA== 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 17D6E825D3 for ; Thu, 12 Dec 2024 14:13:13 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLizi-00021i-3z; Thu, 12 Dec 2024 08:12:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLiqO-0005X0-UC for guix-patches@gnu.org; Thu, 12 Dec 2024 08:03:05 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLiqO-0005rC-LX for guix-patches@gnu.org; Thu, 12 Dec 2024 08:03:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=krsKJ/QsZs8ApbF6wQLCvrjwqzMQVIw28RbAOO4WAXQ=; b=rHiqvnLMnaergIyNjOzfQTy6MqDxt6YayfGl1krI+P/1YuHRMS0LmW04Nt5VVSet5MisVjMvoOMliBn8J0yu1HtK2SZg8NtCIA0kQnEabd87xDJTF+hFYqK65Ad1mdaidYjICVK0HVYKhfenffv5WaAOz5l19TWjalU+huFV+aYJpHIABwPTHKchdwiGoPTVh2j42a6P5mcUUdHwY0NZLbpCzxQxwwqji2ZLtWPzpeGTySXelZ6uSgXyeFaXLDCOn9eclEutXNe0bh+7RtlZ9145BIRM2EJFBlbohVWtxD1J9XxmjALRPchnePovSDY5WocdvFoIAu3YzdnRnPIJhg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLiqM-0007cS-KD for guix-patches@gnu.org; Thu, 12 Dec 2024 08:03:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74819] [PATCH] services: elogind: Support Hook Directories Resent-From: 45mg <45mg.writes@gmail.com> Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 12 Dec 2024 13:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74819 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74819@debbugs.gnu.org Received: via spool by 74819-submit@debbugs.gnu.org id=B74819.173400852929183 (code B ref 74819); Thu, 12 Dec 2024 13:03:02 +0000 Received: (at 74819) by debbugs.gnu.org; 12 Dec 2024 13:02:09 +0000 Received: from localhost ([127.0.0.1]:38150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLipT-0007ab-Kp for submit@debbugs.gnu.org; Thu, 12 Dec 2024 08:02:08 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:60770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <45mg.writes@gmail.com>) id 1tLipQ-0007aM-3u for 74819@debbugs.gnu.org; Thu, 12 Dec 2024 08:02:05 -0500 Received: by mail-pl1-f196.google.com with SMTP id d9443c01a7336-21654fdd5daso4697805ad.1 for <74819@debbugs.gnu.org>; Thu, 12 Dec 2024 05:02:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734008463; x=1734613263; darn=debbugs.gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :from:to:cc:subject:date:message-id:reply-to; bh=krsKJ/QsZs8ApbF6wQLCvrjwqzMQVIw28RbAOO4WAXQ=; b=KbP60UBbzf9xcsgWPTc6H9Xi4ayQWMaTCh1ifl+WXzgaLeyxubWHZkAJuckKXLT90J LhM36QtcGdgbdkhaboZM2Jgnyum1PfkFEiQBYobhDZXRJIQw2serQ9+emvkvDvedxDcV jSMez+Jm4sfM2IBux+A43UfoTou8peg5S3s8uQqNl2vcMS0AJfgVdlINfx4cNabtPaiT fuCC3+8ETzutxmKg5p8pM7t3zFerFgU1puB1E6DfjEP+iG0/C9Epg7TEJnoAkrauh9U4 6Z9I6KnKhtW0U3T+a0DDoThZogG/H/ItOzoriP/bBqT3fUWlzekXMEQOV5I2kxm4S6Do oIAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734008463; x=1734613263; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=krsKJ/QsZs8ApbF6wQLCvrjwqzMQVIw28RbAOO4WAXQ=; b=Tfa/wIko+AWrNeHlK7v01vGrFejHJbGSqoZKML1DtS/BDdoovsiwvV3Do+SK85fidC 1WFzIQXUmxgYcGGg2tR37ggGYC1N1gRuPc8CJl3Sih9nxQ2P2JbaGHA9I+E9jLG7apXc bz9L1c759C2zhjDCGTwd5eD6OoEU9VRtxVePKyg1jV8LPoPCvce45yL514p5qY2OiVsD xhQ1Dr/MKsur8CWVGy0pwOwekxNSDpTeCbdwIRnPc/f7XdGh2EvySyVDPK4Gdcgj8W4Q n5HhetPhp9YnMyWi6KThb6slH7bNTY37CfzLzV/zWkWIPLTjO2g67McUBB7wq0WqeUIs rE6A== X-Gm-Message-State: AOJu0YwiSZ8ILo7deWA5x8+sGDhcfWJ3ayz1CmFdZCSZNird8rMvLYyG AEVc6+HtUbtkqpx+fQ764RUKLKSYQA0UemWUugnkRIrFpI0OrKETGVexr7RA X-Gm-Gg: ASbGncvUb4/0zSgrwCUrthzJgkowBYc39+Ohc2wIKWWqEJLBVG2ZxdPTZbSNaspqz4j WIM9xROpS0Ndu1rJIQpk4AboEnFUXyqENAnM+yZ96kQLUMJH6j7N5cliIFkyS4i1hy2MjMXofn0 ezu0VFRhQPtbNlVlRrBGBpwf/EI6D11PPv+srjcBpCLb5Vxcw2nBquuaKq8WpJKQWJTKy0m+zL2 KksVXfUA+WUzuzORwVKY01cpIDqIimRbco3mlZb9gSTj7Er0g== X-Google-Smtp-Source: AGHT+IEnu0BYrfF2Q7ZK4VQvtmsSfvDVAZndhz+GoqlUQWDnqsSXhQm+Fw3D3Z63VX62e76FOzh3eg== X-Received: by 2002:a17:903:1c7:b0:216:4c88:d93a with SMTP id d9443c01a7336-2178aee72c4mr48189765ad.48.1734008462853; Thu, 12 Dec 2024 05:01:02 -0800 (PST) Received: from guix0 ([122.171.19.44]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21675035c6dsm45460495ad.165.2024.12.12.05.01.01 for <74819@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Dec 2024 05:01:02 -0800 (PST) From: 45mg <45mg.writes@gmail.com> In-Reply-To: <7286c9dd75c4853f5811720150c027b9d9b511d7.1734003226.git.45mg.writes@gmail.com> References: <7286c9dd75c4853f5811720150c027b9d9b511d7.1734003226.git.45mg.writes@gmail.com> Date: Thu, 12 Dec 2024 08:00:51 -0500 Message-ID: <87a5d1ys1o.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Thu, 12 Dec 2024 08:12:39 -0500 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 3.41 X-Spam-Score: 3.41 X-Migadu-Queue-Id: 17D6E825D3 X-TUID: MPHa/OQsRlLC --=-=-= Content-Type: text/plain Here's how I tested these changes if anyone is interested: - Add the files included here into a `testdir` directory - Compile guix shell -D guix --pure -- make - Test in a container (no loginctl sessions, but will catch obvious errors) sudo $(./pre-inst-env guix system container path/to/testdir/test-config.scm) - Test in a VM (need --full-boot for the ability to suspend, etc) $(./pre-inst-env guix system vm --full-boot path/to/testdir/test-config.scm) --=-=-= Content-Type: application/octet-stream Content-Disposition: inline; filename=test-config.scm Content-Transfer-Encoding: base64 KHVzZS1tb2R1bGVzIChnbnUpCiAgICAgICAgICAgICAoZ251IGhvbWUpCiAgICAgICAgICAgICAo Z251IGhvbWUgc2VydmljZXMgZG90ZmlsZXMpKQoodXNlLXNlcnZpY2UtbW9kdWxlcyBjdXBzIGRl c2t0b3AgbmV0d29ya2luZyBzc2ggeG9yZykKCihvcGVyYXRpbmctc3lzdGVtCiAgKGxvY2FsZSAi ZW5fVVMudXRmOCIpCiAgKHRpbWV6b25lICJBbWVyaWNhL05ld19Zb3JrIikKICAoa2V5Ym9hcmQt bGF5b3V0IChrZXlib2FyZC1sYXlvdXQgInVzIikpCiAgKGhvc3QtbmFtZSAiZ3VpeC10ZXN0IikK CiAgKHVzZXJzIChjb25zKiAodXNlci1hY2NvdW50CiAgICAgICAgICAgICAgICAgIChuYW1lICJ1 c2VyIikKICAgICAgICAgICAgICAgICAgKGNvbW1lbnQgIk5vbi1yb290IHVzZXIiKQogICAgICAg ICAgICAgICAgICAoZ3JvdXAgInVzZXJzIikKICAgICAgICAgICAgICAgICAgKGhvbWUtZGlyZWN0 b3J5ICIvaG9tZS91c2VyIikKICAgICAgICAgICAgICAgICAgKHN1cHBsZW1lbnRhcnktZ3JvdXBz ICcoIndoZWVsIiAibmV0ZGV2IiAiYXVkaW8iICJ2aWRlbyIpKSkKICAgICAgICAgICAgICAgICVi YXNlLXVzZXItYWNjb3VudHMpKQoKICAocGFja2FnZXMgJWJhc2UtcGFja2FnZXMpCgogIChzZXJ2 aWNlcwogICAoYXBwZW5kIChsaXN0IChzZXJ2aWNlIGVsb2dpbmQtc2VydmljZS10eXBlCiAgICAg ICAgICAgICAgICAgICAgICAgICAgKGVsb2dpbmQtY29uZmlndXJhdGlvbgogICAgICAgICAgICAg ICAgICAgICAgICAgICAoc3lzdGVtLXNsZWVwLWhvb2stZmlsZXMKICAgICAgICAgICAgICAgICAg ICAgICAgICAgIChsaXN0CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGxvY2FsLWZpbGUK ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgInRlc3Qtc2xlZXAtc2NyaXB0IikpKSkpKQog ICAgICAgICAgICViYXNlLXNlcnZpY2VzKSkKCiAgKGJvb3Rsb2FkZXIgKGJvb3Rsb2FkZXItY29u ZmlndXJhdGlvbgogICAgICAgICAgICAgICAgKGJvb3Rsb2FkZXIgZ3J1Yi1ib290bG9hZGVyKQog ICAgICAgICAgICAgICAgKHRhcmdldHMgKGxpc3QgIi9kZXYvc2RhIikpCiAgICAgICAgICAgICAg ICAoa2V5Ym9hcmQtbGF5b3V0IGtleWJvYXJkLWxheW91dCkpKQoKICAoZmlsZS1zeXN0ZW1zIChj b25zKiAoZmlsZS1zeXN0ZW0KICAgICAgICAgICAgICAgICAgICAgICAgIChtb3VudC1wb2ludCAi LyIpCiAgICAgICAgICAgICAgICAgICAgICAgICAoZGV2aWNlIChmaWxlLXN5c3RlbS1sYWJlbCAi ZHVtbXkiKSkKICAgICAgICAgICAgICAgICAgICAgICAgICh0eXBlICJleHQ0IikpCiAgICAgICAg ICAgICAgICAgICAgICAgJWJhc2UtZmlsZS1zeXN0ZW1zKSkpCg== --=-=-= Content-Type: application/octet-stream Content-Disposition: inline; filename=test-sleep-script Content-Transfer-Encoding: base64 IyEvYmluL3NoCmVjaG8gIiRAIiA+PiAvcm9vdC9lbG9naW5kLXRlc3Qtc2xlZXAtbG9nCg== --=-=-=--