From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eSN2M2U7ZmPvXQAAbAwnHQ (envelope-from ) for ; Sat, 05 Nov 2022 11:31:01 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QJtgMmU7ZmP8+gAAauVa8A (envelope-from ) for ; Sat, 05 Nov 2022 11:31:01 +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 ABFA9E1C4 for ; Sat, 5 Nov 2022 11:31:01 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orGRN-0001A9-UY; Sat, 05 Nov 2022 06:30:18 -0400 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 1orFqw-0000qr-0v for guix-devel@gnu.org; Sat, 05 Nov 2022 05:52:38 -0400 Received: from mail.boiledscript.com ([144.168.59.46]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orFql-0005KZ-3L for guix-devel@gnu.org; Sat, 05 Nov 2022 05:52:37 -0400 Date: Sat, 05 Nov 2022 17:51:59 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1667641943; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=lqAriAYULLkyWHFcVHRhbFIm+KB6DSWQ9HQDwF0LWXw=; b=IBxYuxLcpvUR8EsY/vCiom8xmBAliAgTZYSi3PfXyzV6eHRM/5EE7Iq4PO/Ba5MEppDX9F EDn3UV15IbXT4Z07Nfoa9JqRV3x9ITlylxKzGKBCN8/YRH10tWLHjQmk5/mfHrKJmRYv1V R+bzPBtutzQSqdorbFVvstB6e1u1RijQM0J5/UVTwgSu1BqwcR3viAhoLbHMMShMRcUyZG KV+eIS7En0WhACSjxhuw1uIXPcmLe6Jb96A+7tGgakAFf4rpJwK3JWk7Xa0FnTCNVmpOiP PaAXCi9o463xcQWVmBK0ivBWeInDfqipEcIkGvbiPqSO/8CsVNjsjQNWDZOw3A== Message-ID: From: Hilton Chain To: guix-devel@gnu.org Subject: [RESEND] Expose #:pre-mount argument of boot-system to raw-initrd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: / Received-SPF: pass client-ip=144.168.59.46; envelope-from=hako@ultrarare.space; helo=mail.boiledscript.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 05 Nov 2022 06:30:16 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Guix-devel" Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org 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=1667644261; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=lqAriAYULLkyWHFcVHRhbFIm+KB6DSWQ9HQDwF0LWXw=; b=N1Aeu6yoxtTI9eZn1g5R2n58StqJ9FHf0Aezgb9/d2XM8Ow5ENeNwR/v7aRIObovzBmwuV q4tWWRF3nVziAt7xIUGfTCpDD1h3TQtRkVjdXgSsC0FZBQWJKwGyzVfeeZPjDhcYHi07qi PDbpEcmvWuNsD6SFTPtKXX8rh0ldyEGA6V+C5HaRw2E2m5B9lSRf5FPp6QXDB7pcypwC/7 Ew9xVOZH4+Ep8fcTsXIhITxLFqaproSUfbNXjnFbPBMfmQuPjhcKdTNqnxfzKq5zDNEg4t DjDphcwjBAvYX6pUu4N8519PLNZyMdOn/bhIAP8IxAz7Cs6PoeDyJaAmlk1T0g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667644261; a=rsa-sha256; cv=none; b=ctDNZRvY9XH1XwQTssRts7tv7MhD3WffQoarhAHkDJOMWsvCqN6k0dNjwRaCyzuCnPaRqF aUvDl6LlcYsLDJXcV2HTih4AbaMJulJxFimg3usdoOJ+blaMPbiyoJhWQUiFX+KYdpoc8F Le3Vjn5bYrCsrPuPFT7Y9tZC71/XhbHMXsKSlJmQjrGQ+0vXK0fKr4ZZuSPhDwGgbuDEtc AGkAnn+kKKiFYcMw6K8B7MMRWRejh3Lf7Rk9LYQqm0oln/HlC9FnQNfP50PENMBWCJZxnf W9OwF1K2BXccV9HQAGOgzTmUWutjKriXYal50sIjjeoQ0HdBt/R2DCL92pQ9ZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ultrarare.space header.s=dkim header.b=IBxYuxLc; dmarc=pass (policy=reject) header.from=ultrarare.space; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.51 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ultrarare.space header.s=dkim header.b=IBxYuxLc; dmarc=pass (policy=reject) header.from=ultrarare.space; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: ABFA9E1C4 X-Spam-Score: -6.51 X-Migadu-Scanner: scn0.migadu.com X-TUID: oSLHHzHKVB7m Hi Guix, The patch adds a #:pre-mount argument to raw-initrd, to be used in the later boot-system invocation. This enables more customization space while avoiding raw-initrd definition duplicates. My main goal is to unlock LUKS root partition remotely via SSH, as in the NixOS module linked below: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/luksroot.nix I'm stilling experimenting with that, further progress would come as replies. Thanks! Hilton Chain (1): linux-initrd: raw-initrd: Add keyword argument #:pre-mount. gnu/system/linux-initrd.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) base-commit: 64e53112c2191378cf5dd543e291bec4c6f57b53 -- 2.38.0