[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20/48: bootloader: grub: Use rumpdisk-style root when booting with "noid
From: |
guix-commits |
Subject: |
20/48: bootloader: grub: Use rumpdisk-style root when booting with "noide". |
Date: |
Sun, 4 Jun 2023 07:43:43 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd
in repository guix.
commit 66d1c9e08f08b72e3ce8951dc5f8a12b779d1a12
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Tue May 23 16:03:53 2023 +0200
bootloader: grub: Use rumpdisk-style root when booting with "noide".
* gnu/bootloader/grub.scm (make-grub-configuration): When "noide" is in
arguments, use device name "wd0" rather than "hd0".
---
gnu/bootloader/grub.scm | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/gnu/bootloader/grub.scm b/gnu/bootloader/grub.scm
index ecd44e7f3c..5f3fcd7074 100644
--- a/gnu/bootloader/grub.scm
+++ b/gnu/bootloader/grub.scm
@@ -3,7 +3,7 @@
;;; Copyright © 2016 Chris Marusich <cmmarusich@gmail.com>
;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
;;; Copyright © 2017, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
-;;; Copyright © 2019, 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
+;;; Copyright © 2019, 2020, 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2019, 2020 Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2020 Stefan <stefan-guix@vodafonemail.de>
@@ -404,17 +404,23 @@ when booting a root file system on a Btrfs subvolume."
#$linux (string-join (list #$@arguments))
#$initrd)))
(multiboot-kernel
- (let ((kernel (menu-entry-multiboot-kernel entry))
- (arguments (menu-entry-multiboot-arguments entry))
- (modules (menu-entry-multiboot-modules entry))
- (root-index 1)) ; XXX EFI will need root-index 2
+ (let* ((kernel (menu-entry-multiboot-kernel entry))
+ (arguments (menu-entry-multiboot-arguments entry))
+ ;; Choose between device names as understood by Mach's built-in
+ ;; IDE driver ("hdX") and those understood by rumpdisk ("wdX"
+ ;; in the "noide" case).
+ (disk (if (member "noide" arguments) "w" "h"))
+ (modules (menu-entry-multiboot-modules entry))
+ (root-index 1)) ; XXX EFI will need root-index 2
#~(format port "
menuentry ~s {
- multiboot ~a root=device:hd0s~a~a~a
+ multiboot ~a root=part:~a:device:~ad0~a~a
}~%"
#$label
#$kernel
- #$root-index (string-join (list #$@arguments) " " 'prefix)
+ #$root-index
+ #$disk
+ (string-join (list #$@arguments) " " 'prefix)
(string-join (map string-join '#$modules)
"\n module " 'prefix))))
(chain-loader
- branch wip-hurd created (now fd472f29a0), guix-commits, 2023/06/04
- 01/48: hurd-boot: Add urandom and default-pager translators., guix-commits, 2023/06/04
- 03/48: gnu: gnumach-headers: Cross-build without relying on x86., guix-commits, 2023/06/04
- 02/48: gnu: glibc/hurd-headers: Properly cross-build., guix-commits, 2023/06/04
- 20/48: bootloader: grub: Use rumpdisk-style root when booting with "noide".,
guix-commits <=
- 25/48: services: static-networking: Support netdde for the Hurd., guix-commits, 2023/06/04
- 41/48: gnu: diffutils: Remove test-perror2 from XFAIL_TESTS for the Hurd., guix-commits, 2023/06/04
- 43/48: gnu: m4: Skip gnulib stack-overflow tests for the Hurd., guix-commits, 2023/06/04
- 38/48: gnu: grep: Update hanging and failing tests for the Hurd., guix-commits, 2023/06/04
- 44/48: hurd: Support system init in /libexec/runsystem., guix-commits, 2023/06/04
- 07/48: gnu: mig: Update to 04bfe7a91223ba15d868f7165e49328b1c6e86c3., guix-commits, 2023/06/04
- 16/48: gnu: hurd: Add rumpkernel., guix-commits, 2023/06/04
- 21/48: gnu: gnumach: Support "noide" argument., guix-commits, 2023/06/04
- 42/48: gnu: gettext-minimal: Remove XFAIL_TESTS for the Hurd., guix-commits, 2023/06/04
- 28/48: gnu: commencement: Add automake-boot0., guix-commits, 2023/06/04