Your message dated Thu, 27 Sep 2012 21:27:09 +0200 with message-id <20120927192709.GH31434@radis.cristau.org> and subject line Re: Bug#687975: unblock: os-prober/1.56 has caused the Debian Bug report #687975, regarding unblock: os-prober/1.56 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 owner@bugs.debian.org immediately.) -- 687975: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=687975 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: unblock: os-prober/1.56
- From: Colin Watson <cjwatson@debian.org>
- Date: Mon, 17 Sep 2012 19:09:20 +0100
- Message-id: <[🔎] 20120917180919.GY13747@riva.dynamic.greenend.org.uk>
Package: release.debian.org Severity: normal User: release.debian.org@packages.debian.org Usertags: unblock I think we should include this os-prober upload in wheezy; it fixes a messy grub.cfg parsing bug (see https://bugs.launchpad.net/bugs/1050774) in the event that another operating system has GRUB 2.00 installed. This version of GRUB will be used by jessie and Ubuntu >= 12.10. The sed expressions are insane. Sorry about that. I've tested them as best I can based on what grub-mkconfig generates in practice ... diff -Nru os-prober-1.55/debian/changelog os-prober-1.56/debian/changelog --- os-prober-1.55/debian/changelog 2012-08-25 08:58:51.000000000 +0100 +++ os-prober-1.56/debian/changelog 2012-09-17 19:02:31.000000000 +0100 @@ -1,3 +1,16 @@ +os-prober (1.56) unstable; urgency=low + + [ Hedayat Vatankhah ] + * Add support for probing Fedora's location for the GRUB 2 configuration + file (closes: #674560). + + [ Colin Watson ] + * Fix the parsing code in the grub2 handler so that it no longer gets + hopelessly confused by multiple single-quoted strings on the same line, + as produced by GRUB 2.00. + + -- Colin Watson <cjwatson@debian.org> Mon, 17 Sep 2012 19:02:29 +0100 + os-prober (1.55) unstable; urgency=low * Improve detection of Haiku: detect the 64-bit version diff -Nru os-prober-1.55/linux-boot-probes/mounted/common/40grub2 os-prober-1.56/linux-boot-probes/mounted/common/40grub2 --- os-prober-1.55/linux-boot-probes/mounted/common/40grub2 2011-05-02 02:00:46.000000000 +0100 +++ os-prober-1.56/linux-boot-probes/mounted/common/40grub2 2012-09-17 18:32:52.000000000 +0100 @@ -44,13 +44,17 @@ entry_result shift 1 # The double-quoted string is the title. - title="$(echo "$@" | sed -n 's/[^"]*"\(.*\)".*/\1/p' | sed 's/://g')" + # Make sure to look at the text of the line + # before 'set' mangled it. + title="$(echo "$line" | sed -n 's/[^"]*"\(.*\)".*/\1/p' | sed 's/://g')" if [ -z "$title" ]; then - # ... or single-quoted? The - # unescaping here is odd because the - # 'set' above has already eaten - # backslash-escapes. - title="$(echo "$@" | sed -n "s/[^']*'\(.*\)'.*/\1/p" | sed "s/'''/'/; s/://g")" + # ... or single-quoted? Be careful + # to handle constructions like + # 'foo'\''bar' (which expands to + # foo'bar, as in shell), and to + # handle multiple single-quoted + # strings on the same line. + title="$(echo "$line" | sed -n "s/[^']*'\(\([^']\|'\\\\''\)*\)'.*/\1/p" | sed "s/'\\\\''/'/; s/://g")" fi if [ -z "$title" ]; then ignore_item=1 @@ -94,6 +98,9 @@ [ "$mpoint/boot/grub/grub.cfg" -nt "$mpoint/boot/grub/menu.lst" ]); then debug "parsing grub.cfg" parse_grub_menu "$mpoint" "$partition" "$bootpart" < "$mpoint/boot/grub/grub.cfg" +elif [ -e "$mpoint/boot/grub2/grub.cfg" ]; then + debug "parsing grub.cfg" + parse_grub_menu "$mpoint" "$partition" "$bootpart" < "$mpoint/boot/grub2/grub.cfg" fi if [ "$found_item" = 0 ]; then Thanks, -- Colin Watson [cjwatson@debian.org]
--- End Message ---
--- Begin Message ---
- To: Colin Watson <cjwatson@debian.org>, 687975-done@bugs.debian.org
- Subject: Re: Bug#687975: unblock: os-prober/1.56
- From: Julien Cristau <jcristau@debian.org>
- Date: Thu, 27 Sep 2012 21:27:09 +0200
- Message-id: <20120927192709.GH31434@radis.cristau.org>
- In-reply-to: <[🔎] 20120917180919.GY13747@riva.dynamic.greenend.org.uk>
- References: <[🔎] 20120917180919.GY13747@riva.dynamic.greenend.org.uk>
On Mon, Sep 17, 2012 at 19:09:20 +0100, Colin Watson wrote: > Package: release.debian.org > Severity: normal > User: release.debian.org@packages.debian.org > Usertags: unblock > > I think we should include this os-prober upload in wheezy; it fixes a > messy grub.cfg parsing bug (see https://bugs.launchpad.net/bugs/1050774) > in the event that another operating system has GRUB 2.00 installed. > This version of GRUB will be used by jessie and Ubuntu >= 12.10. > This seems to have made it to testing somehow. Closing. Cheers, JulienAttachment: signature.asc
Description: Digital signature
--- End Message ---