Message ID | cover.1730296564.git.janneke@gnu.org |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 695EB27BBEA; Wed, 30 Oct 2024 14:34:50 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D138327BBE2 for <patchwork@mira.cbaines.net>; Wed, 30 Oct 2024 14:34:49 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1t69lt-0002BG-Gh; Wed, 30 Oct 2024 10:34:05 -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 <Debian-debbugs@debbugs.gnu.org>) id 1t69ls-0002Aj-4b for guix-patches@gnu.org; Wed, 30 Oct 2024 10:34:04 -0400 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 <Debian-debbugs@debbugs.gnu.org>) id 1t69lq-0003cD-VN; Wed, 30 Oct 2024 10:34:02 -0400 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:From:To:In-Reply-To:References:Subject; bh=GlDcaK5NARVQunEm9gkVgVIBJqWokyWWMunlQ9jKm9I=; b=dBrKHOA0Qfs3IhGYgdWweeMSs2VQfMvqpuvgGX/IaLp42JyBHqzFiriPqeNl2P3JhozIBtdsOTUbGkF0cjaKhlONsoRhoByxDMZOFdlnw6cI2g6xH+BaaEPvevArRSf+OACjiz8PH3/sswugh2KshL4sL8KilO5mvr+AsjFoOZTcgD+OVd+ab2ZFWkKRAsYvwBO4tnZf5XR3lXOwXDsNxUtE+IaKUla5MfoYh3yVb54MihKx2lU7kAOpUQYcvhkae/gOjgUc1qUD1yf64rZGwUbuUGO6i3QOaX96w1Gpy3YPzqbjs69Nfzojk4QAu+PNwONqvuiFQL4h5In9P78TBg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1t69lp-0003xg-Iu; Wed, 30 Oct 2024 10:34:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73927] [PATCH v4 00/18] Installer support for (cross) installing the Hurd. References: <cover.1729494414.git.janneke@gnu.org> In-Reply-To: <cover.1729494414.git.janneke@gnu.org> Resent-From: Janneke Nieuwenhuizen <janneke@gnu.org> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, guix-patches@gnu.org Resent-Date: Wed, 30 Oct 2024 14:34:01 +0000 Resent-Message-ID: <handler.73927.B73927.173029880215018@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73927 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73927@debbugs.gnu.org Cc: Janneke Nieuwenhuizen <janneke@gnu.org>, Josselin Poiret <dev@jpoiret.xyz>, Ludovic =?utf-8?q?Court=C3=A8s?= <ludo@gnu.org>, Mathieu Othacehe <othacehe@gnu.org> X-Debbugs-Original-Xcc: Josselin Poiret <dev@jpoiret.xyz>, Ludovic =?utf-8?q?Court=C3=A8s?= <ludo@gnu.org>, Mathieu Othacehe <othacehe@gnu.org> Received: via spool by 73927-submit@debbugs.gnu.org id=B73927.173029880215018 (code B ref 73927); Wed, 30 Oct 2024 14:34:01 +0000 Received: (at 73927) by debbugs.gnu.org; 30 Oct 2024 14:33:22 +0000 Received: from localhost ([127.0.0.1]:35289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1t69lB-0003u9-4w for submit@debbugs.gnu.org; Wed, 30 Oct 2024 10:33:21 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <janneke@gnu.org>) id 1t69l7-0003ta-60 for 73927@debbugs.gnu.org; Wed, 30 Oct 2024 10:33:19 -0400 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 <janneke@gnu.org>) id 1t69iv-0003KB-25; Wed, 30 Oct 2024 10:31:01 -0400 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=GlDcaK5NARVQunEm9gkVgVIBJqWokyWWMunlQ9jKm9I=; b=IHy9jPyyfi5Xas +TG7pXaVfMFXT9k7YHaOrMCeJH9mgQqjsXAohfVeADHYmsWH1NE2PyC5LN7WSdppbM0et5RZ95Zww SE0GeFtQ/P2T7b4PNIpx0NInu+9jk/PkNDWQaWbflyTLU1dNnh9LmO65UbAoyeiTNPHYfPEE7LCig xmY4Z9TzuEsMjMFoVAUEyOdckUJAl//9dDBWDAPhdD6wJz+NEUxdX4Rh2ic+rbS4sNd0JUEWHXDi+ 5UFMYNEeds+8aEZMoK7AXRjLJ1yxithizXUibIw9IRhFj25XEkeuyaTyZxSv/gJD8fJytWMzchsf9 9glVAlRzLnMJOhklNdXA==; From: Janneke Nieuwenhuizen <janneke@gnu.org> Date: Wed, 30 Oct 2024 15:30:29 +0100 Message-ID: <cover.1730296564.git.janneke@gnu.org> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
Installer support for (cross) installing the Hurd.
|
|
Message
Janneke Nieuwenhuizen
Oct. 30, 2024, 2:30 p.m. UTC
From: "Janneke Nieuwenhuizen" <janneke@gnu.org>
New in this series:
* reconfigure: Use native bootloader package for running the installer,
* default to "msdos" partion table,
* do not suggest/create boot partition,
* remove "--skip-checks" from guix system init call,
* default to part:1:device:wd0 instead of failing when no permission to read
/dev (resurrecting tests/guix-system.sh),
which lead to the first fresh install that actually boots without any extra
tinkering on my x60 using this
--8<---------------cut here---------------start------------->8---
./pre-inst-env guix system image -t iso9660 --system=i686-linux gnu/system/install.scm
--8<---------------cut here---------------end--------------->8---
installer. I've updated the hurd-team branch.
Greetings,
Janneke
Janneke Nieuwenhuizen (18):
gnu: guile-fibers: Fix cross-build for the Hurd.
reconfigure: Use native bootloader package for running the installer.
guix system: When installing the Hurd, create essential devices.
bootloader: grub: Remove hardcoded partition number for the Hurd.
system: hurd: Remove qemu networking from %base-services/hurd.
system: hurd: Add swap-services to hurd-default-essential-services.
gnu: hurd: Support second boot.
hurd-boot: Support second boot.
maint: Add installer dependencies to the manifest.
installer: Remove unused (newt) imports.
installer: Align comments.
installer: Use "partitioning-page" consistently.
installer: Fix file-name typos.
installer: Use `%' for parameter %run-command-in-installer.
installer: Add dry-run?
installer: Add "Kernel" page to select the Hurd.
installer: Add static-networking template.
installer: Support dry-run from Guile via store.
gnu/bootloader/grub.scm | 19 ++-
gnu/build/file-systems.scm | 58 +++++++
gnu/build/hurd-boot.scm | 21 ++-
gnu/installer.scm | 207 ++++++++++++++++++------
gnu/installer/final.scm | 9 +-
gnu/installer/kernel.scm | 41 +++++
gnu/installer/newt.scm | 24 ++-
gnu/installer/newt/ethernet.scm | 1 -
gnu/installer/newt/final.scm | 20 ++-
gnu/installer/newt/kernel.scm | 45 ++++++
gnu/installer/newt/keymap.scm | 6 +-
gnu/installer/newt/locale.scm | 7 +-
gnu/installer/newt/page.scm | 7 +-
gnu/installer/newt/parameters.scm | 1 -
gnu/installer/newt/partition.scm | 11 +-
gnu/installer/newt/services.scm | 32 ++--
gnu/installer/parted.scm | 141 ++++++++++------
gnu/installer/record.scm | 8 +-
gnu/installer/services.scm | 68 ++++++--
gnu/installer/steps.scm | 30 ++--
gnu/installer/tests.scm | 11 ++
gnu/installer/utils.scm | 17 +-
gnu/local.mk | 3 +
gnu/packages/guile-xyz.scm | 11 +-
gnu/packages/hurd.scm | 6 +-
gnu/packages/patches/hurd-startup.patch | 82 ++++++++++
gnu/services/base.scm | 20 ++-
gnu/services/virtualization.scm | 4 +-
gnu/system.scm | 13 +-
gnu/system/examples/bare-hurd.tmpl | 10 +-
gnu/system/hurd.scm | 26 +--
gnu/system/images/hurd.scm | 2 +-
gnu/tests/install.scm | 6 +-
guix/scripts/system.scm | 6 +-
guix/scripts/system/reconfigure.scm | 3 +-
manifest.scm | 7 +-
36 files changed, 775 insertions(+), 208 deletions(-)
create mode 100644 gnu/installer/kernel.scm
create mode 100644 gnu/installer/newt/kernel.scm
create mode 100644 gnu/packages/patches/hurd-startup.patch
base-commit: d6f775c30c6f47e174f6110d1089edc6315600e4
Comments
Mathieu Othacehe writes: Hello, > Janneke Nieuwenhuizen writes: >> From: "Janneke Nieuwenhuizen" <janneke@gnu.org> >> >> New in this series: >> >> * reconfigure: Use native bootloader package for running the installer, >> * default to "msdos" partion table, >> * do not suggest/create boot partition, >> * remove "--skip-checks" from guix system init call, >> * default to part:1:device:wd0 instead of failing when no permission to read >> /dev (resurrecting tests/guix-system.sh), >> >> which lead to the first fresh install that actually boots without any extra >> tinkering on my x60 using this >> >> ./pre-inst-env guix system image -t iso9660 --system=i686-linux gnu/system/install.scm >> >> installer. I've updated the hurd-team branch. > I remember resorting to a similar hack, back in 2018 when writing the > installer. Maybe we should go the extra mile and integrate that one to a > proper guix command, such as `guix system installer` that would call > `run-installer` with dry-run set to #t. WDYT? Yes, I still think this is a nice idea. Better to open a new bug for that when someone wants to write a patch? Pushed to master as 035e5f0c743d80be3d4029f9daba90cb8b657782. Thanks! Janneke