Bug#1006496: hurd: transfer options from d-i to installed system
Samuel Thibault
sthibault at debian.org
Sat Feb 26 12:00:41 GMT 2022
Source: grub2
Version: 2.06-2
Severity: normal
Tags: patch
Hello,
It is useful for people to see the Linux kernel options they pass to d-i
to be propagated to the installed system, e.g. for serial console setup,
disk probing etc. We would like to have this propagation performed for
hurd as well, the attach patch implements this.
(I have already made the d-i grub-installer package preseed
grub2/gnumach_cmdline)
Samuel
-------------- next part --------------
--- config.in.original 2022-02-24 22:43:14.000000000 +0000
+++ config.in 2022-02-24 22:46:16.000000000 +0000
@@ -58,6 +58,9 @@
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
case @PACKAGE@ in
grub-pc)
@@ -72,8 +75,16 @@
;;
esac
-db_input ${priority} grub2/linux_cmdline || true
-db_input medium grub2/linux_cmdline_default || true
+case `dpkg --print-architecture` in
+ hurd-*)
+ db_input medium grub2/gnumach_cmdline || true
+ ;;
+ *)
+ db_input ${priority} grub2/linux_cmdline || true
+ db_input medium grub2/linux_cmdline_default || true
+ ;;
+esac
+
case @PACKAGE@ in
grub-*efi*)
db_input low grub2/force_efi_extra_removable || true
--- postinst.in.original 2022-02-24 22:44:15.000000000 +0000
+++ postinst.in 2022-02-24 22:44:23.000000000 +0000
@@ -392,6 +392,7 @@
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
case @PACKAGE@ in
grub-pc)
--- templates.in.original 2022-02-24 22:46:36.000000000 +0000
+++ templates.in 2022-02-24 22:47:12.000000000 +0000
@@ -12,6 +12,13 @@
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
--- default/grub.original 2022-02-26 11:56:38.000000000 +0000
+++ default/grub 2022-02-24 22:43:55.000000000 +0000
@@ -8,6 +8,7 @@
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="@DEFAULT_CMDLINE@"
GRUB_CMDLINE_LINUX=""
+GRUB_CMDLINE_GNUMACH=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
More information about the Pkg-grub-devel
mailing list