Your message dated Mon, 15 May 2023 23:07:53 +0000
with message-id <[email protected]>
and subject line Bug#820838: fixed in grub2 2.06-13
has caused the Debian Bug report #820838,
regarding os-prober: 40grub2 does not handle multiple initrd paths
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
820838: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820838
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: os-prober
Version: 1.63
Severity: important
Tags: patch
User: [email protected]
Usertags: origin-ubuntu xenial ubuntu-patch
Dear Maintainer,
Having installed Manjaro and Ubuntu on a single machine, I found that
update-grub2
failed to produce bootable entries for Manjaro (from Ubuntu) because only the
first
initrd path ended up in the grub.cfg. Manjaro uses two paths on the initrd
line,
e.g.:
initrd /boot/intel-ucode.img /boot/initramfs-4.4-x86_64.img
The problem is partly caused by grub2's 30_os-prober script which can't
properly handle
multiple initrd paths. This is reported separately here:
https://savannah.gnu.org/bugs/index.php?47681
But the script still depends on linux-boot-prober's output, which currently
only gives
the first path on the initrd line, ignoring anything on the line after it.
While the entire system seems hackish to me, a simple fix for this situation is
given in
the included diff, and it's no more hackish than the rest of the script.
Applying the attached patch, in addition to applying the fix suggested for
grub2 in the link
above, allows update-grub2 to produce correct, bootable entries for Manjaro.
* linux-boot-probes/mounted/common/40grub2: must be able to handle
multiple initrd paths, as used in some distros, e.g. Manjaro.
This is my first-ever attempt at reporting a bug to Debian, so please overlook
anything
I may have done wrong. (I DO wish Debian just had a NORMAL bug tracker like
everyone
else.)
Thanks for considering the patch.
-- System Information:
Debian Release: jessie/sid
APT prefers trusty-updates
APT policy: (500, 'trusty-updates'), (500, 'trusty-security'), (500,
'trusty'), (100, 'trusty-backports')
Architecture: i386 (i686)
Kernel: Linux 3.13.0-85-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru os-prober-1.63ubuntu1.1/debian/changelog os-prober-1.63ubuntu1.1ppa1/debian/changelog
diff -Nru os-prober-1.63ubuntu1.1/debian/control os-prober-1.63ubuntu1.1ppa1/debian/control
--- os-prober-1.63ubuntu1.1/debian/control 2016-01-12 16:29:39.000000000 +0000
+++ os-prober-1.63ubuntu1.1ppa1/debian/control 2016-04-12 21:49:05.000000000 +0000
@@ -1,8 +1,7 @@
Source: os-prober
Section: debian-installer
Priority: optional
-Maintainer: Ubuntu Developers <[email protected]>
-XSBC-Original-Maintainer: Debian Install System Team <[email protected]>
+Maintainer: Debian Install System Team <[email protected]>
Uploaders: Colin Watson <[email protected]>, Joey Hess <[email protected]>, Christian Perrier <[email protected]>, Steve McIntyre <[email protected]>
Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.15.7)
Standards-Version: 3.9.4
diff -Nru os-prober-1.63ubuntu1.1/linux-boot-probes/mounted/common/40grub2 os-prober-1.63ubuntu1.1ppa1/linux-boot-probes/mounted/common/40grub2
--- os-prober-1.63ubuntu1.1/linux-boot-probes/mounted/common/40grub2 2016-01-12 16:29:39.000000000 +0000
+++ os-prober-1.63ubuntu1.1ppa1/linux-boot-probes/mounted/common/40grub2 2016-04-12 18:08:04.000000000 +0000
@@ -78,11 +78,22 @@
fi
;;
initrd)
- initrd="$(echo "$2" | sed 's/(.*)//')"
+ shift
+ initrd=""
+ for initrd_path in "$@"
+ do
+ # sed hack, as above
+ initrd_path="$(echo "$initrd_path" | sed 's/(.*)//')"
# Initrd same.
if [ "$partition" != "$bootpart" ]; then
- initrd="/boot$initrd"
+ initrd_path="/boot$initrd_path"
fi
+ if [ -z "$initrd" ]; then
+ initrd="$initrd_path"
+ else
+ initrd="$initrd $initrd_path"
+ fi
+ done
;;
"}")
entry_result
--- End Message ---
--- Begin Message ---
Source: grub2
Source-Version: 2.06-13
Done: Steve McIntyre <[email protected]>
We believe that the bug you reported is fixed in the latest version of
grub2, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Steve McIntyre <[email protected]> (supplier of updated grub2 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sun, 23 Apr 2023 20:55:54 +0100
Source: grub2
Architecture: source
Version: 2.06-13
Distribution: unstable
Urgency: medium
Maintainer: GRUB Maintainers <[email protected]>
Changed-By: Steve McIntyre <[email protected]>
Closes: 820838 838177 1034409 1034825 1034850 1034868 1035294 1035399 1035761
1035846 1035905
Changes:
grub2 (2.06-13) unstable; urgency=medium
.
[ Steve McIntyre ]
* When *also* installing to the removable media path, include the
relevant mokmanager binary. Closes: #1034409
.
[ General Chaos ]
* Allow initrd to contain spaces. Closes: #838177, #820838.
.
[ Translators ]
* Update lots of translations of debconf templates, thanks to the
following:
+ Welsh (Dafydd Tomos)
+ German (Helge Kreutzmann). Closes: #1034850
+ Croatian (Tomislav Krznar)
+ Greek (Emmanuel Galatoulas)
+ Esperanto (Felipe Castro)
+ French (Baptiste Jammet). Closes: #1035761
+ Italian (Luca Monducci). Closes: #1034825
+ Kazakh (Baurzhan Muftakhidinov)
+ Korean (Changwoo Ryu). Closes: #1034868
+ Latvian (Rudolfs Mazurs)
+ Dutch (Frans Spiesschaert). Closes: #1035399
+ Norwegian Bokmål (Petter Reinholdtsen, Sverre Vaabenoe)
+ Brazilian Portuguese (Adriano Rafael Gomes). Closes: #1035905
+ Romanian (Remus-Gabriel Chelu)
+ Russian (Yuri Kozlov). Closes: #1035294
+ Turkish (Atila KOÇ). Closes: #1035846
+ Swedish (Luna Jernberg)
Checksums-Sha1:
752bb7b5ae5292fef39ef6ef0d9889ad32c56105 7061 grub2_2.06-13.dsc
1bbbfaec16684f984e0d8911f82f5bf211a1bef7 1112620 grub2_2.06-13.debian.tar.xz
6631e23dfb5740fce0f12fdafc92e5761b1273bf 13204 grub2_2.06-13_source.buildinfo
Checksums-Sha256:
93b5eab877a1e018c3e8dd89fe35cdb6e689b59836418c8ad5facdeb1d82330d 7061
grub2_2.06-13.dsc
9b571d71688a0d3de1dfc5ff9ccad5654f02c8f6556ec77a523f3a44720342eb 1112620
grub2_2.06-13.debian.tar.xz
9afd78013713758fcf4c3085d71ff7d56593b88e3392293ff22a5af4aac86106 13204
grub2_2.06-13_source.buildinfo
Files:
b3b790ae395e999dffa1285e50aef3f7 7061 admin optional grub2_2.06-13.dsc
d72bd3454f3818517f32494b12be6b5b 1112620 admin optional
grub2_2.06-13.debian.tar.xz
b0b83f60b446c58db878825ae6f24413 13204 admin optional
grub2_2.06-13_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJFBAEBCAAvFiEEzrtSMB1hfpEDkP4WWHl5VzRCaE4FAmRitWYRHDkzc2FtQGRl
Ymlhbi5vcmcACgkQWHl5VzRCaE6ocw//WRwFdJgtOkJvvm15F62k1gDy7IxDTdCb
aah7FplYtmSUiAZYVWNiBVNRt5fCg67YbNSKIa7my27UULFIiUa3HXSGKQzWMSCg
E65DnPfT+2uFJ+PIWZv+TFhPbLqRWRk/rvhhqQX6988TBDNOS9NDwzZtS11z2RXP
C0XH/Ceal5ttm71vNdAVFtcmXGBRbmzhSxnT8rf7yvjbzXh+AWCxTLdvyMBpTNSc
7G7g1qU+nkLcKZD0VSz8KrzDYydk0rOIQwG47/HkX/o88d+Xhz1iIYq5GwXE16fF
ieb/SlmEzpiRkh5kTHNs9EJLCy904X1nSmXPku1VROpZl+/EpO5ItFLBdfqRJikz
DGnIFRV4I0t7Dcje7hbqO44CWDYFEwUBeJygY3wS+0QyTpt8Vs2Flh+QO03nZ/4R
YFAJV9KTiKxLzAZzf3rKQOcY8vNQ1NIMZeG5irD5kXv9YfoxZBZcElW38FnWvXFy
vbfXMTnDKeF1WqkuYtda9Wi7iwchnuLd591QHiVDCQa/y6R7DefeteqxUZpxJInq
apgl7Z1c0ELrURUHD3mFSLjBJ9Np5aQjfGdNKwyGMJzot2bemng9R3mmhY2HkYch
Fp6CxTjPjLhnOCKAJWjbq5aiZmPGEemIu5bCLLcbeKFvAXhC3pSz6fa7fK4RzbbO
RsftJ2YYLiM=
=C8Y8
-----END PGP SIGNATURE-----
--- End Message ---