From:
Prowler73@gmail.com
This is a multi-part MIME message sent by reportbug.
Source: grub2
Version: 2.12-8
Severity: serious
Tags: patch
Justification: Appendix "8.2" - Violates outcome of 2019 GR
X-Debbugs-Cc:
Prowler73@gmail.com
Dear Maintainer,
Please revert the deletion of patch mkconfig-other-inits.patch'
I can't see justification for this to be removed (eg closes bug xxx), either on git or through the changelog.
Refer to discussion here:
https://salsa.debian.org/grub- team/grub/-/commit/bdc71248132521f3d0fb506e84b478be349fbcae#57fc750524807a0da244e17a3a27a57bf55ba59d
It shouldn't be acceptable to remove perfectly working code that Debian derivatives (such as antiX & MX) utilise to offer exploration of alternative inits.
Please accept - examine & apply my proposed patch (included) to close this out
-- System Information:
Debian Release: 13.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.236-antix.1-amd64-smp (SMP w/4 CPU threads)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
From: Colin Watson <
cjwatson@debian.org>
Date: Sat, 3 Jan 2015 12:04:59 +0000
Subject: Generate alternative init entries in advanced menu
Add fallback boot entries for alternative installed init systems. Based
on patches from Michael Biebl and Didier Roche.
Bug-Debian:
https://bugs.debian.org/757298
Bug-Debian:
https://bugs.debian.org/773173
Forwarded: no
Last-Update: 2017-06-23
Patch-Name: mkconfig-other-inits.patch
Last-Update: 2025-06-20
--- grub2-2.12.orig/util/grub.d/10_linux.in
+++ grub2-2.12/util/grub.d/10_linux.in
@@ -32,6 +32,7 @@ export TEXTDOMAIN=@PACKAGE@
export TEXTDOMAINDIR="@localedir@"
CLASS="--class gnu-linux --class gnu --class os" +SUPPORTED_INITS="sysvinit:/lib/sysvinit/init systemd:/lib/systemd/systemd upstart:/sbin/upstart s6-rc:/lib/s6-rc/s6-rc-init s6-66:/lib/s6-66/s6-66-init openrc:/lib/openrc/openrc-init runit:/lib/runit/runit-init dinit:/lib/dinit/dinit shepherd:/lib/
shepherd/shepherd"
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
OS=GNU/Linux
@@ -395,6 +396,13 @@ for linux in ${reverse_sorted_list}; do
linux_entry "${OS}" "${version}" advanced \
"${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
+ for supported_init in ${SUPPORTED_INITS}; do
+ init_path="${supported_init#*:}"
+ if [ -x "${init_path}" ] && [ "$(readlink -f /sbin/init)" != "$(readlink -f "${init_path}")" ]; then
+ linux_entry "${OS}" "${version}" "init-${supported_init%%:*}" \
+ "${GRUB_CMDLI