all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mathieu Othacehe <othacehe@gnu.org>
To: <janneke@gnu.org>
Cc: "Josselin Poiret" <dev@jpoiret.xyz>,
	74531@debbugs.gnu.org,
	"Maxim Cournoyer" <maxim.cournoyer@gmail.com>,
	"Simon Tournier" <zimon.toutoune@gmail.com>,
	"Ludovic Courtès" <ludo@gnu.org>,
	"Tobias Geerinckx-Rice" <me@tobias.gr>,
	"Christopher Baines" <guix@cbaines.net>
Subject: [bug#74531] [PATCH] system: Add "installer" sub-command.
Date: Tue, 03 Dec 2024 08:57:06 +0100	[thread overview]
Message-ID: <87wmghp5bh.fsf@gnu.org> (raw)
In-Reply-To: <87mshngw7a.fsf@gnu.org> (janneke@gnu.org's message of "Mon, 25 Nov 2024 16:38:33 +0100")


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




  parent reply	other threads:[~2024-12-03  8:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-25 15:38 [bug#74531] [PATCH] system: Add "installer" sub-command janneke
2024-12-03  7:31 ` bug#74531: " Janneke Nieuwenhuizen
2024-12-03  7:57 ` Mathieu Othacehe [this message]
2024-12-03  8:15   ` [bug#74531] " Janneke Nieuwenhuizen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wmghp5bh.fsf@gnu.org \
    --to=othacehe@gnu.org \
    --cc=74531@debbugs.gnu.org \
    --cc=dev@jpoiret.xyz \
    --cc=guix@cbaines.net \
    --cc=janneke@gnu.org \
    --cc=ludo@gnu.org \
    --cc=maxim.cournoyer@gmail.com \
    --cc=me@tobias.gr \
    --cc=zimon.toutoune@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.