[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
24/92: gnu: gnumach: Support "noide" argument.
From: |
guix-commits |
Subject: |
24/92: gnu: gnumach: Support "noide" argument. |
Date: |
Fri, 23 Jun 2023 12:45:39 -0400 (EDT) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit b69fbd3d5ae2d399e68f1c3e8a03493137c6a3da
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Fri May 19 14:03:47 2023 +0200
gnu: gnumach: Support "noide" argument.
* gnu/packages/patches/gnumach-support-noide.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/hurd.scm (gnumach-headers): Use it.
* doc/guix.texi (Bootloader Configuration): Document it.
---
doc/guix.texi | 24 ++++++++++++++++++++++-
gnu/local.mk | 1 +
gnu/packages/hurd.scm | 3 ++-
gnu/packages/patches/gnumach-support-noide.patch | 25 ++++++++++++++++++++++++
4 files changed, 51 insertions(+), 2 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index c961f706ec..e004b85483 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -40013,7 +40013,29 @@ For example:
@item @code{multiboot-arguments} (default: @code{'()})
The list of extra command-line arguments for the multiboot-kernel.
-@item @code{multiboot-modules} (default: @code{'()})
+For example, when running in QEMU it can be useful to use a text-based
+console (use options @option{--nographic} @option{--serial mon:stdio}):
+
+@lisp
+'("console=com0")
+@end lisp
+
+To use the new and still experimental
+@uref{https://darnassus.sceen.net/~hurd-web/rump_kernel/, rumpdisk
+user-level disk driver} instead of GNU@tie{}Mach's in-kernel IDE driver,
+set @code{kernel-arguments} to:
+
+@lisp
+'("noide")
+@end lisp
+
+Of course, these options can be combined:
+
+@lisp
+'("console=com0" "noide")
+@end lisp
+
++@item @code{multiboot-modules} (default: @code{'()})
The list of commands for loading Multiboot modules. For example:
@lisp
diff --git a/gnu/local.mk b/gnu/local.mk
index e18bb36653..560fc55bb6 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1286,6 +1286,7 @@ dist_patch_DATA =
\
%D%/packages/patches/gnome-session-support-elogind.patch \
%D%/packages/patches/gnome-tweaks-search-paths.patch \
%D%/packages/patches/gnumach-add-missing-const_mach_port_name_array_t-type.patch
\
+ %D%/packages/patches/gnumach-support-noide.patch \
%D%/packages/patches/gnupg-default-pinentry.patch \
%D%/packages/patches/gnupg-1-build-with-gcc10.patch \
%D%/packages/patches/gnutls-skip-trust-store-test.patch \
diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm
index f3e5368460..975444d924 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -67,7 +67,8 @@
(file-name (git-file-name "gnumach" version))
(sha256
(base32
- "0f49zqxf64ds75rmskizpybl2mw7sxs05k59gjp3pgspvr87w7gs"))))
+ "0f49zqxf64ds75rmskizpybl2mw7sxs05k59gjp3pgspvr87w7gs"))
+ (patches (list (search-patch "gnumach-support-noide.patch")))))
(build-system gnu-build-system)
(arguments
`(#:phases
diff --git a/gnu/packages/patches/gnumach-support-noide.patch
b/gnu/packages/patches/gnumach-support-noide.patch
new file mode 100644
index 0000000000..723d4bcac4
--- /dev/null
+++ b/gnu/packages/patches/gnumach-support-noide.patch
@@ -0,0 +1,25 @@
+Upstream status: Taken from Debian/upsream.
+
+
https://salsa.debian.org/hurd-team/gnumach/-/blob/master/debian/patches/90_noide.patch
+
+This supports using `noide' on the gnumach command line, disabling
+gnumach IDE support and thus forcing use of rumdisk.
+
+---
+ linux/dev/glue/block.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+--- a/linux/dev/glue/block.c
++++ b/linux/dev/glue/block.c
+@@ -207,7 +207,10 @@ int
+ blk_dev_init ()
+ {
+ #ifdef CONFIG_BLK_DEV_IDE
+- ide_init ();
++ extern char *kernel_cmdline;
++ if (strncmp(kernel_cmdline, "noide", 5) &&
++ !strstr(kernel_cmdline, " noide"))
++ ide_init ();
+ #endif
+ #ifdef CONFIG_BLK_DEV_FD
+ floppy_init ();
- 68/92: gnu: zstd: Skip tests when building for the Hurd., (continued)
- 68/92: gnu: zstd: Skip tests when building for the Hurd., guix-commits, 2023/06/23
- 75/92: gnu: ghostscript: Fix build for the Hurd., guix-commits, 2023/06/23
- 77/92: gnu: pango: Support build for the Hurd., guix-commits, 2023/06/23
- 76/92: gnu: harfbuzz: Support build for the Hurd., guix-commits, 2023/06/23
- 87/92: gnu: guix: Disable some tests on the Hurd., guix-commits, 2023/06/23
- 88/92: gnu: guix: Update to 1.4.0-8.bda98632ff., guix-commits, 2023/06/23
- 90/92: DRAFT hurd: Support second boot., guix-commits, 2023/06/23
- 67/92: gnu: swig: Skip tests when building for the Hurd., guix-commits, 2023/06/23
- 72/92: gnu: graphite2: Skip test on the Hurd., guix-commits, 2023/06/23
- 74/92: gnu: glib: Disable tests for the Hurd., guix-commits, 2023/06/23
- 24/92: gnu: gnumach: Support "noide" argument.,
guix-commits <=
- 45/92: hurd: Support system init in /libexec/runsystem., guix-commits, 2023/06/23
- 48/92: gnu: python: Support native build on the Hurd., guix-commits, 2023/06/23
- 55/92: gnu: tcl: Remove failing tests on the Hurd.., guix-commits, 2023/06/23
- 58/92: gnu: emacs: Depend on libc-for-target., guix-commits, 2023/06/23
- 59/92: gnu: procps: Skip linux-version test for the Hurd., guix-commits, 2023/06/23
- 60/92: gnu: e2fsprogs: Skip failing tests on the Hurd., guix-commits, 2023/06/23
- 64/92: gnu: openssl-1.1: Fix shared build for the Hurd., guix-commits, 2023/06/23
- 69/92: gnu: cmake-bootstrap: Fix build for the Hurd., guix-commits, 2023/06/23
- 71/92: gnu: doxygen: Fix build for the Hurd., guix-commits, 2023/06/23
- 70/92: gnu: cmake-minimal: Skip tests on the Hurd., guix-commits, 2023/06/23