[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
24/84: gnu: gnumach: Support "noide" argument.
From: |
guix-commits |
Subject: |
24/84: gnu: gnumach: Support "noide" argument. |
Date: |
Wed, 14 Jun 2023 06:23:56 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd
in repository guix.
commit 79111045d295599f23a0de601f4abbcf239bb952
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 c9b3fb642c..d3f04b8b78 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -39882,7 +39882,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 dfdd34a99d..afb12c54fe 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1282,6 +1282,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 c1b0af9a35..4fe68740fb 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -80,7 +80,8 @@ GNU/Hurd."
(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 ();
- 64/84: gnu: openssl-1.1: Fix shared build for the Hurd., (continued)
- 64/84: gnu: openssl-1.1: Fix shared build for the Hurd., guix-commits, 2023/06/14
- 67/84: gnu: swig: Skip tests when building for the Hurd., guix-commits, 2023/06/14
- 75/84: gnu: ghostscript: Fix build for the Hurd., guix-commits, 2023/06/14
- 69/84: gnu: cmake-bootstrap: Fix build for the Hurd., guix-commits, 2023/06/14
- 08/84: gnu: gnumach: Update to 1.8+git20221224., guix-commits, 2023/06/14
- 06/84: squash! gnu: Add libc-for-target and glibc/hurd., guix-commits, 2023/06/14
- 05/84: gnu: Add libc-for-target and glibc/hurd., guix-commits, 2023/06/14
- 10/84: gnu: mig: Update to 04bfe7a91223ba15d868f7165e49328b1c6e86c3., guix-commits, 2023/06/14
- 16/84: gnu: Add rumpkernel., guix-commits, 2023/06/14
- 01/84: hurd-boot: Add urandom and default-pager translators., guix-commits, 2023/06/14
- 24/84: gnu: gnumach: Support "noide" argument.,
guix-commits <=
- 12/84: gnu: hurd: Update to v0.9.git20230216., guix-commits, 2023/06/14
- 28/84: services: static-networking: Support netdde for the Hurd., guix-commits, 2023/06/14
- 09/84: gnu: Add libc-locales-for-target and glibc-locales/hurd., guix-commits, 2023/06/14
- 19/84: gnu: hurd: Add rumpkernel., guix-commits, 2023/06/14
- 34/84: gnu: commencement: hurd-headers-boot0: Update to 0.9.git20230216., guix-commits, 2023/06/14
- 30/84: gnu: commencement: Add autoconf-boot0., guix-commits, 2023/06/14
- 32/84: gnu: commencement: gnumach-headers-boot0: Update to 1.8+git20221224., guix-commits, 2023/06/14
- 40/84: Revert "gnu: sed: Skip failing test on GNU/Hurd.", guix-commits, 2023/06/14
- 57/84: gnu: git: Skip failing test for the Hurd., guix-commits, 2023/06/14
- 78/84: gnu: fontforge: Support build for the Hurd., guix-commits, 2023/06/14