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 yMgoCpzGTmfRZgEA62LTzQ:P1 (envelope-from ) for ; Tue, 03 Dec 2024 08:51:40 +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 yMgoCpzGTmfRZgEA62LTzQ (envelope-from ) for ; Tue, 03 Dec 2024 09:51:40 +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="fELyix//"; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=bUJJmWmS; 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=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733212705; 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: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=ciqEYBcg7amZ7BYTKqRl3MoVKaXV8zdrEPJ5shyv61c=; b=uz52Te+sbJ6FfspMD3sr20lBTkm/MQw81Mz+Aid60QxFJZ6lpWVTVzUE7OEwUtdhITI/vG dJRcLL89TajxcG0Vx50PCuVu2E7IcV76ibcJXrY+0h/TDuQR3Bi/QBQEKKrIo1xXruniyj 9Np+RAfzeNlujeT2y1vrlbULnOPLLvAKeXT1VP8rJK9wLkDHe86MQPrDmXSGud35zAZKog AFDVeKQc3DmtD0Yw5orS09nQUHGHmcx6h0L1lj6K8BBNMuU+rmJ0VUIT1q0qTAINMZYAOl c0RogwlGObmoJlVXHNcc9uY32JcW6nMRfCrmbC3706B11XGGZfUP22KBRMNwvA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="fELyix//"; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=bUJJmWmS; 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=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733212705; a=rsa-sha256; cv=none; b=BTxa88Bq+k59ON31EQFtGQYHhGpHVoOmPSOQOdPP+Wdy1Y3ceZYorn0PAOgBhHCwZ6J1dY uwbRzO84fiakPcDGSS+zqWcgRwNbUkoUHlSDaSJK/0waqFFJBFjfUX0qgJGZJhj01bcvel FCS8uYX9CKNLD1LZg69Ims0IUw3SuMu7sag0neaGxamV+W73ReASjPhJlB02Hg1ue/5M64 tsFgJ75RkbW8QEY8tyXsJEAJngzueVGAaWev8E1sTh/Hm1+uZzcBxRLXW4DcS2khxvQ5JR wVZ8+16k0BntJjxGEYm0g/s1Z/wKiMeXqZzdo4vzF8OuRtsnd8AqWxk1kr+X/A== 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 1C2BE44171 for ; Tue, 03 Dec 2024 08:58:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tINnJ-0000ut-2I; Tue, 03 Dec 2024 02:58:05 -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 1tINnH-0000tt-Ep for guix-patches@gnu.org; Tue, 03 Dec 2024 02:58:03 -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 1tINnG-0006a8-UH for guix-patches@gnu.org; Tue, 03 Dec 2024 02:58:02 -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=ciqEYBcg7amZ7BYTKqRl3MoVKaXV8zdrEPJ5shyv61c=; b=fELyix//EDzq8jXMA90VMFZviQim5qTYDkE1BamNN31I0nINsyusOBX+khyXyTB0rR4iJfAMx3AQA+uDCL/FjOJlnLBhqdx64Y3DR6DI6Pca0M9sSKhuwuXJu823n0KKVVonmH6xM/8nhBuG7FLeESFFpFB7dWx4VLxhazH1kc8qmqVBI2067WV0aeyexzlejBkeOiQRh7TUSZk6RbVLSr/0UbQ4PQX2q+6XAE31F2kVOAhEi8qWdmAsuPrp5Iv8xaGnBMxA7yc/eBkHgJquTDxsnt9BgtumsXuzvEgN9+GuEdpfeC7gFZRmrYnJcu2GlpBYTGSbml+NGBDOxGTSRA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tINnG-00072E-Oc for guix-patches@gnu.org; Tue, 03 Dec 2024 02:58:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74531] [PATCH] system: Add "installer" sub-command. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 03 Dec 2024 07:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74531 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Cc: Josselin Poiret , 74531@debbugs.gnu.org, Maxim Cournoyer , Simon Tournier , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Tobias Geerinckx-Rice , Christopher Baines Received: via spool by 74531-submit@debbugs.gnu.org id=B74531.173321264326967 (code B ref 74531); Tue, 03 Dec 2024 07:58:02 +0000 Received: (at 74531) by debbugs.gnu.org; 3 Dec 2024 07:57:23 +0000 Received: from localhost ([127.0.0.1]:58129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tINmc-00070r-IN for submit@debbugs.gnu.org; Tue, 03 Dec 2024 02:57:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tINma-00070Y-If for 74531@debbugs.gnu.org; Tue, 03 Dec 2024 02:57:21 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tINmS-0006VW-7z; Tue, 03 Dec 2024 02:57:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=ciqEYBcg7amZ7BYTKqRl3MoVKaXV8zdrEPJ5shyv61c=; b=bUJJmWmSQYB4MhzRdZmX s1r3ZP1WqM+N4JZAi7n2yZir9pyYCEx6M5XCnSatMpGr6Fj3wdKmKYkv2AgoJAtDS3wDZO5QL7XEM s1BKXk4qLndEheNUnu1FiU4hho8XimC+w7PKQIg3UkTR/aTXIg+FoIZJq3TlJ0zzZ4ZU9T8Vt17zm prz1iGgtc/7uZRJ1sa85+ejBGo++Gg4vZtCUBmAD5pOG+yUSU27TEOzl2+w7/TkjOoRsPyF4HaO6e tmKDZl6QQZmWFojy53V0+12eJC7YMBI8d7VHjT/tnPzJkMAm52KCEFbufd7Cu6sqgowQ4IrUxgjRD ifOW6SkDTiXU8A==; From: Mathieu Othacehe In-Reply-To: <87mshngw7a.fsf@gnu.org> (janneke@gnu.org's message of "Mon, 25 Nov 2024 16:38:33 +0100") References: <87mshngw7a.fsf@gnu.org> Date: Tue, 03 Dec 2024 08:57:06 +0100 Message-ID: <87wmghp5bh.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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: -1.85 X-Spam-Score: -1.85 X-Migadu-Queue-Id: 1C2BE44171 X-TUID: yJOND6mZ55o0 Hello Janneke, > Subject: [PATCH] system: Add "installer" sub-command. > > * guix/scripts/system/installer.scm: New file. > * Makefile.am (MODULES)[ENABLE_INSTALLER]: Register it. > (MODULES_NOT_COMPILED)[!ENABLE_INSTALLER]: Likewise. > * guix/scripts/system.scm (show-help): Add help for "installer" sub-command. > (actions): Register "installer". > (guix-system): Invoke `guix-system-installer' sub-command. > * doc/guix.texi (Invoking guix system): Document it. > * gnu/installer.scm (run-installer): Remove "./pre-inst env". That looks great thanks! It makes me think that we could go further than that an come-up with a command that would look like: --8<---------------cut here---------------start------------->8--- guix system image --installer os-1.scm os-2.scm --8<---------------cut here---------------end--------------->8--- That would generate a bootable image, that would contain the closure of all the provided system configurations (os-1.scm, os-2.scm, ...). That image would run the installer and would directly propose the installation of the os-1 or the os-2 to the user. Most of the installations pages could then be skipped, except the host-name and partitioning pages. That way, one could generate an image with say, a Hurd based system configuration and a Linux based system configuration and then, pick in the installer the system to be installed. As the image contains the closure of both systems, there would be no network issues. Mathieu