Article View: linux.debian.bugs.dist
Article #1274Bug#1006496: hurd: transfer options from d-i to installed system
From: Samuel Thibault
Date: Sun, 18 Oct 2026 15:10
Date: Sun, 18 Oct 2026 15:10
94 lines
5508 bytes
5508 bytes
--asVQuLjbZCmYVYjv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hello,
Here is yet another refreshed patch for 2.14.
Would it be possible to know what is needed to get this integrated?
Thanks,
Samuel
--asVQuLjbZCmYVYjv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch
Index: grub2-2.14/debian/config.in
===================================================================
--- grub2-2.14.orig/debian/config.in
+++ grub2-2.14/debian/config.in
@@ -51,6 +51,9 @@ fi
if [ "${GRUB_CMDLINE_LINUX_DEFAULT+set}" = set ]; then
db_set grub2/linux_cmdline_default "$GRUB_CMDLINE_LINUX_DEFAULT"
fi
+if [ "${GRUB_CMDLINE_GNUMACH+set}" = set ]; then
+ db_set grub2/gnumach_cmdline "$GRUB_CMDLINE_GNUMACH"
+fi
# Watch for the inverted logic here...
if [ "${GRUB_DISABLE_OS_PROBER+set}" = set ]; then
if [ "${GRUB_DISABLE_OS_PROBER}" = "false" ]; then
@@ -73,8 +76,16 @@ case @PACKAGE@ in
;;
esac
-db_input ${priority} grub2/linux_cmdline || true
-db_input medium grub2/linux_cmdline_default || true
+case `dpkg --print-architecture` in
+ hurd-*)
+ db_input ${priority} grub2/gnumach_cmdline || true
+ ;;
+ *)
+ db_input ${priority} grub2/linux_cmdline || true
+ db_input medium grub2/linux_cmdline_default || true
+ ;;
+esac
+
db_input low grub2/enable_os_prober || true
case @PACKAGE@ in
grub-*efi*)
Index: grub2-2.14/debian/default/grub
===================================================================
--- grub2-2.14.orig/debian/default/grub
+++ grub2-2.14/debian/default/grub
@@ -8,6 +8,7 @@ GRUB_TIMEOUT=@DEFAULT_TIMEOUT@
GRUB_DISTRIBUTOR=`( . /etc/os-release && echo ${NAME} )`
GRUB_CMDLINE_LINUX_DEFAULT="@DEFAULT_CMDLINE@"
GRUB_CMDLINE_LINUX=""
+GRUB_CMDLINE_GNUMACH=""
# If your computer has multiple operating systems installed, then you
# probably want to run os-prober. However, if your computer is a host
Index: grub2-2.14/debian/postinst.in
===================================================================
--- grub2-2.14.orig/debian/postinst.in
+++ grub2-2.14/debian/postinst.in
@@ -278,6 +278,7 @@ case "$1" in
apply_conf_tweaks "$conf_files" merge_debconf_into_conf GRUB_CMDLINE_LINUX grub2/linux_cmdline
apply_conf_tweaks "$conf_files" merge_debconf_into_conf GRUB_CMDLINE_LINUX_DEFAULT grub2/linux_cmdline_default
+ apply_conf_tweaks "$conf_files" merge_debconf_into_conf GRUB_CMDLINE_GNUMACH grub2/gnumach_cmdline
# Horrible stuff here, as the os-prober option is a negative
# setting (GRUB_DISABLE_OS_PROBER). To not confuse people with
Index: grub2-2.14/debian/templates.in
===================================================================
--- grub2-2.14.orig/debian/templates.in
+++ grub2-2.14/debian/templates.in
@@ -12,6 +12,13 @@ _Description: Linux default command line
The following string will be used as Linux parameters for the default menu
entry but not for the recovery mode.
+Template: grub2/gnumach_cmdline
+Type: string
+_Description: GNU Mach command line:
+ The following GNU Mach command line was extracted from /etc/default/grub.
+ Please verify that it is correct, and modify it if necessary. The command line
+ is allowed to be empty.
+
Template: grub2/force_efi_extra_removable
Type: boolean
Default: false
--asVQuLjbZCmYVYjv--
Technical Details
Message-ID:
<NPAGm-6m6M-21@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomodReferences:
<DV43D-4sXy-5@gated-at.bofh.it> <DV43D-4sXy-5@gated-at.bofh.it> <GMIZr-2cYW-9@gated-at.bofh.it> <DV43D-4sXy-5@gated-at.bofh.it> <HYoJr-4psE-1@gated-at.bofh.it> <DV43D-4sXy-5@gated-at.bofh.it> <HYoJr-4psE-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: Samuel Thibault <sthibault@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1006496: hurd: transfer options from d-i to installed system Date: Sun, 18 Oct 2026 17:10:02 +0200 Message-ID: <NPAGm-6m6M-21@gated-at.bofh.it> References: <DV43D-4sXy-5@gated-at.bofh.it> <DV43D-4sXy-5@gated-at.bofh.it> <GMIZr-2cYW-9@gated-at.bofh.it> <DV43D-4sXy-5@gated-at.bofh.it> <HYoJr-4psE-1@gated-at.bofh.it> <DV43D-4sXy-5@gated-at.bofh.it> <HYoJr-4psE-1@gated-at.bofh.it> X-Original-To: 1006496@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sun Oct 18 15:09:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Samuel Thibault <sthibault@debian.org>, 1006496@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-grub-devel@alioth-lists.debian.net X-Debian-Pr-Message: followup 1006496 X-Debian-Pr-Package: src:grub2 X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: grub2 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="asVQuLjbZCmYVYjv" Content-Disposition: inline Organization: I am not organized X-Debian-User: sthibault X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1997408 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 94 Sender: robomod@news.nic.it X-Original-Date: Sun, 18 Oct 2026 17:06:10 +0200 X-Original-Message-ID: <atTgYladXZK97_qM@end> X-Original-References: <20220226120041.omrs3hwhy7p3pzhp@begin> <20220226120041.omrs3hwhy7p3pzhp@begin> <20230701132739.rkthgpjeejzpqxbd@begin> <20220226120041.omrs3hwhy7p3pzhp@begin> <20240120184632.x55nebtubw7qsnuh@begin> <20220226120041.omrs3hwhy7p3pzhp@begin> <20240120184632.x55nebtubw7qsnuh@begin>