From unknown Wed Jun 18 23:09:58 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#74531 <74531@debbugs.gnu.org> To: bug#74531 <74531@debbugs.gnu.org> Subject: Status: [PATCH] system: Add "installer" sub-command. Reply-To: bug#74531 <74531@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:09:58 +0000 retitle 74531 [PATCH] system: Add "installer" sub-command. reassign 74531 guix-patches submitter 74531 severity 74531 normal tag 74531 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 25 10:38:48 2024 Received: (at submit) by debbugs.gnu.org; 25 Nov 2024 15:38:48 +0000 Received: from localhost ([127.0.0.1]:40076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFbAm-0005pk-4W for submit@debbugs.gnu.org; Mon, 25 Nov 2024 10:38:48 -0500 Received: from lists.gnu.org ([209.51.188.17]:51750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFbAl-0005pc-3e for submit@debbugs.gnu.org; Mon, 25 Nov 2024 10:38:47 -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 1tFbAi-0007q1-2t for guix-patches@gnu.org; Mon, 25 Nov 2024 10:38:45 -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 1tFbAg-00045o-3z; Mon, 25 Nov 2024 10:38:42 -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:Subject:To:From:in-reply-to: references; bh=GhaLcmd3QMM+6dvhe1pR5+dKoggSM+wyS8/BPR4yN80=; b=i4r3l98U8KyPFp ehkZP+pafj/oLW16jcajSQbqqHKc0qb5sfzZPXflg9Bwb61Bgs1ZQ3IBdwCcBKglaDN1w9dI+9yOK P88vCqQM+3OSvbFMlarZQdl1pBkTMdS0wr65LZUnUMCJ3rSsyzOE8GDhq7WXEc5EksEHVOWz5b2LE FeWbIsVHNmB9HMIbU7AW8Hcma4yK6nun2dDtrQAncu6khMk6trZt++G7EiErNx15FSMAnbAwhezHN 2Wv0RJOwNtd8bhHjvV/U02FqFcXIf0cUUK6uKB93vTa1jcjvwprIm7o3pVhIJrRlg13Qmda7KsnqU 6Km460UFqFtv/B7neLxg==; From: To: guix-patches@gnu.org Subject: [PATCH] system: Add "installer" sub-command. Organization: AvatarAcademy.nl X-Url: http://AvatarAcademy.nl Date: Mon, 25 Nov 2024 16:38:33 +0100 Message-ID: <87mshngw7a.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: Josselin Poiret , Maxim Cournoyer , Simon Tournier , Mathieu Othacehe , Ludovic =?utf-8?Q?Court=C3=A8s?= , Tobias Geerinckx-Rice , Christopher Baines X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain As suggested by Mathieu , this patch adds the `guix system installer' subcommand. The groundwork was already there. Greetigns, Janneke --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-system-Add-installer-sub-command.patch Content-Transfer-Encoding: quoted-printable >From c852c393ba77e702c7e57412ac031bca457d8602 Mon Sep 17 00:00:00 2001 Message-ID: From: Janneke Nieuwenhuizen Date: Mon, 25 Nov 2024 16:17:33 +0100 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". Change-Id: I5a05b941c060682c17d45d871df3cf34e3f8643a --- Makefile.am | 8 ++++ doc/guix.texi | 17 ++++++++ gnu/installer.scm | 2 +- guix/scripts/system.scm | 7 +++- guix/scripts/system/installer.scm | 70 +++++++++++++++++++++++++++++++ 5 files changed, 102 insertions(+), 2 deletions(-) create mode 100644 guix/scripts/system/installer.scm diff --git a/Makefile.am b/Makefile.am index e94ba87797..6812049e02 100644 --- a/Makefile.am +++ b/Makefile.am @@ -408,6 +408,14 @@ MODULES +=3D \ =20 endif BUILD_DAEMON_OFFLOAD =20 +INSTALLER_SCRIPT =3D guix/scripts/system/installer.scm + +if ENABLE_INSTALLER +MODULES +=3D $(INSTALLER_SCRIPT) +else +MODULES_NOT_COMPILED +=3D $(INSTALLER_SCRIPT) +endif !ENABLE_INSTALLER + # Scheme implementation of the build daemon and related functionality. STORE_MODULES =3D \ guix/store/database.scm \ diff --git a/doc/guix.texi b/doc/guix.texi index 26488b41c8..d35bfccd06 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -43196,6 +43196,23 @@ Invoking guix system @file{my-os-config}, unless the @option{--no-bootloader} option was passed. =20 +@item installer +Run the installer. Usually the installer is built as an @file{iso} +image, copied to a USB Stick or DVD, and booted from (@ref{USB Stick and +DVD Installation}). If your machine already runs Guix and you still +want to run the installer, e.g., for testing purposes, you can skip the +creatiing of an @file{iso} and run for instance: + +@example +guix system installer --dry-run +@end example + +@quotation Note +If you do not use @option{--dry-run} then you need to run as root. Be +very careful when running the installer as root, it can cause data loss +or render your system unbootable! +@end quotation + @item vm @cindex virtual machine @cindex VM diff --git a/gnu/installer.scm b/gnu/installer.scm index 0a36f1f67b..4acad60f21 100644 --- a/gnu/installer.scm +++ b/gnu/installer.scm @@ -642,4 +642,4 @@ (define* (run-installer #:key dry-run?) (outputs (build-derivations store (list drv)))) (close-connection store) (format #t "running installer: ~a\n" program) - (invoke "./pre-inst-env" "guile" program))) + (invoke "guile" program))) diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm index 7989b183ad..dd34f6cd15 100644 --- a/guix/scripts/system.scm +++ b/guix/scripts/system.scm @@ -56,6 +56,7 @@ (define-module (guix scripts system) delete-matching-generations list-installed) #:autoload (guix scripts pull) (channel-commit-hyperlink) + #:autoload (guix scripts system installer) (guix-system-installer) #:autoload (guix graph) (export-graph node-type graph-backend-name lookup-backend) #:use-module (guix scripts system reconfigure) @@ -996,6 +997,8 @@ (define (show-help) docker-image build a Docker image\n")) (display (G_ "\ init initialize a root file system to run GNU\n")) + (display (G_ "\ + installer run the graphical installer\n")) (display (G_ "\ extension-graph emit the service extension graph in Dot format\n")) (display (G_ "\ @@ -1229,7 +1232,7 @@ (define actions '("build" "container" "vm" "vm-image"= "image" "disk-image" "list-generations" "describe" "delete-generations" "roll-back" "switch-generation" "search" "edit" - "docker-image")) + "docker-image" "installer")) =20 (define (process-action action args opts) "Process ACTION, a sub-command, with the arguments are listed in ARGS. @@ -1441,6 +1444,8 @@ (define-command (guix-system . args) ;; Parse sub-command ARG and augment RESULT accordingly. (cond ((assoc-ref result 'action) (alist-cons 'argument arg result)) + ((equal? arg "installer") + (apply guix-system-installer args)) ((member arg actions) (let ((action (string->symbol arg))) (alist-cons 'action action result))) diff --git a/guix/scripts/system/installer.scm b/guix/scripts/system/instal= ler.scm new file mode 100644 index 0000000000..48baaefe42 --- /dev/null +++ b/guix/scripts/system/installer.scm @@ -0,0 +1,70 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2024 Janneke Nieuwenhuizen +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (guix scripts system installer) + #:use-module (srfi srfi-1) + #:use-module (srfi srfi-37) + #:use-module (gnu installer) + #:use-module (guix scripts) + #:use-module (guix ui) + #:use-module (guix utils) + #:export (guix-system-installer)) + +;;; Commentary: +;;; +;;; Implement the 'guix system installer' command, which runs the installe= r, +;;; directly as a Guix command, also in dry-run mode. +;;; +;;; Code: + +(define %options + (list (option '(#\n "dry-run") #f #f + (lambda (opt name arg result) + (alist-cons 'dry-run? #t result))) + (option '(#\h "help") #f #f + (lambda args + (show-help) + (exit 0))) + (option '(#\V "version") #f #f + (lambda args + (show-version-and-exit "guix system installer"))))) + +(define (show-help) + (display (G_ "Usage: guix system installer [OPTION]... +Run the system installler.\n")) + (display (G_ " + -n, --dry-run skip network setup, partitioning, and actual inst= all")) + (display (G_ " + -h, --help display this help and exit")) + (display (G_ " + -V, --version display version information and exit")) + (newline) + (show-bug-report-information)) + + +;;; +;;; Entry Point. +;;; +(define-command (guix-system-installer . args) + (synopsis "run the graphical installer program") + + (with-error-handling + (let* ((opts (parse-command-line args %options '((dry-run? . #f)) + #:build-options? #f)) + (dry-run? (assoc-ref opts 'dry-run?))) + (run-installer #:dry-run? dry-run?)))) base-commit: 9b1fb12978482ffb6d37c456343f05609b28b3e8 --=20 2.46.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 03 02:34:22 2024 Received: (at 74531-done) by debbugs.gnu.org; 3 Dec 2024 07:34:22 +0000 Received: from localhost ([127.0.0.1]:58034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tINQM-0005pg-2J for submit@debbugs.gnu.org; Tue, 03 Dec 2024 02:34:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tINQI-0005pM-28 for 74531-done@debbugs.gnu.org; Tue, 03 Dec 2024 02:34:20 -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 1tINO4-0001cd-Nr; Tue, 03 Dec 2024 02:32:00 -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=zeZ9zcfRqfMbbXK27JjZypUpRnABajatutikCN2frY8=; b=ovKVefPJyddJySTvqLcc ZG7zrq4dMWESoztG+57Kqe/3IXF5TK7gp987motNpmkzDkV2Z7LCoz/9/ycYXt7iIUZ6C2CsY32G6 ihFMK6IZxQ2CEgM7MrRXwgtZ/aUfLa1H9oflXa6m1ByArSAlF43BeL5J0lGWd3VqKCwZEIfLdLO+B fkSAsKr00yh4UkyUKwTR+OXdJhPCfG0nNTIqJ5eBESe7jyJoLR5MTyMgaKP8fZVvM1wjvWVZqvN/n TSZGGxuCpR57OeYUyluAMcYLokEdmOF5r5cUYVbRMYsnlj3nVS/HUDsW+mhABDt9fAiK04p1XgFZr bWgPdzBEUA6vNQ==; From: Janneke Nieuwenhuizen To: 74531-done@debbugs.gnu.org Subject: Re: [PATCH] system: Add "installer" sub-command. In-Reply-To: <87mshngw7a.fsf@gnu.org> (janneke@gnu.org's message of "Mon, 25 Nov 2024 16:38:33 +0100") Organization: AvatarAcademy.nl References: <87mshngw7a.fsf@gnu.org> X-Url: http://AvatarAcademy.nl Date: Tue, 03 Dec 2024 08:31:54 +0100 Message-ID: <87mshdkys5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74531-done Cc: Josselin Poiret , Maxim Cournoyer , Simon Tournier , Mathieu Othacehe , Ludovic =?utf-8?Q?Court=C3=A8s?= , Tobias Geerinckx-Rice , Christopher Baines X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > As suggested by Mathieu , this > patch adds the `guix system installer' subcommand. The groundwork > was already there. Pushed to master as 5cb84f2013c5b1e48a7d0e617032266f1e6059e2. =20=20 --=20 Janneke Nieuwenhuizen | GNU LilyPond https://LilyPond.org Freelance IT https://www.JoyOfSource.com | Avatar=C2=AE https://AvatarAcade= my.com From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 03 02:57:23 2024 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 To: Subject: Re: [bug#74531] [PATCH] system: Add "installer" sub-command. 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74531 Cc: Josselin Poiret , 74531@debbugs.gnu.org, Maxim Cournoyer , Simon Tournier , Ludovic =?utf-8?Q?Court=C3=A8s?= , Tobias Geerinckx-Rice , Christopher Baines X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 03 03:16:07 2024 Received: (at 74531) by debbugs.gnu.org; 3 Dec 2024 08:16:07 +0000 Received: from localhost ([127.0.0.1]:58183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIO4l-0007zi-1a for submit@debbugs.gnu.org; Tue, 03 Dec 2024 03:16:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIO4i-0007z7-CN for 74531@debbugs.gnu.org; Tue, 03 Dec 2024 03:16:05 -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 1tIO4a-0001Ud-Bp; Tue, 03 Dec 2024 03:15:56 -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=5brQjC7eA8GjczZRQB6HgBjs2VYCG8u6E6jAUe6ILug=; b=jPVDe1iNt4h1o8fWRNmw F5cH8eJx5Vz16u4E+yUWRl4oY3W+YbooZAm5USkOALq/si8TMDYSL+i7QtwkOe4Bf0RkSzS/QVhb4 Md7Z4w8arjE8dqQLOv7ux/Yl7cOWhTgjboOa81zs06BHPp7v/rqthUlJd4nsyfd6OqVreozSjqtA1 PyiAhdErRoA2AUI4pdKjnvGFoNzDP/GnklfmXGBh5dKHUOpJE7MSGi4trEDsWngkrLlAr5CRLggMp riRQI+GaUYYGx6FMD4H7XHva1JuO8ni8j/MFHOqKK18H/txtsQNGs9f3i58tt0ws/NoIlpK3Q6yKw M8NLruZQEj3eRg==; From: Janneke Nieuwenhuizen To: Mathieu Othacehe Subject: Re: [bug#74531] [PATCH] system: Add "installer" sub-command. In-Reply-To: <87wmghp5bh.fsf@gnu.org> (Mathieu Othacehe's message of "Tue, 03 Dec 2024 08:57:06 +0100") Organization: AvatarAcademy.nl References: <87mshngw7a.fsf@gnu.org> <87wmghp5bh.fsf@gnu.org> X-Url: http://AvatarAcademy.nl Date: Tue, 03 Dec 2024 09:15:52 +0100 Message-ID: <874j3lji6f.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74531 Cc: Josselin Poiret , 74531@debbugs.gnu.org, Maxim Cournoyer , Simon Tournier , Ludovic =?utf-8?Q?Court=C3=A8s?= , Tobias Geerinckx-Rice , Christopher Baines X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Mathieu Othacehe writes: > 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-comm= and. >> (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! Your idea :) > It makes me think that we could go further than that an come-up with a > command that would look like: > > guix system image --installer os-1.scm os-2.scm > > That would generate a bootable image, that would contain the closure of > all the provided system configurations (os-1.scm, os-2.scm, ...). Oh, that would be nice too, would you like to look into that? > 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. Yes, indeed! Greetings, Janneke --=20 Janneke Nieuwenhuizen | GNU LilyPond https://LilyPond.org Freelance IT https://www.JoyOfSource.com | Avatar=C2=AE https://AvatarAcade= my.com From unknown Wed Jun 18 23:09:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 31 Dec 2024 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator