From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GUilK-0006tx-3p for mharc-grub-devel@gnu.org; Tue, 03 Oct 2006 07:48:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GUilI-0006ts-3F for grub-devel@gnu.org; Tue, 03 Oct 2006 07:48:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GUilF-0006tg-L7 for grub-devel@gnu.org; Tue, 03 Oct 2006 07:48:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GUilF-0006td-Cw for grub-devel@gnu.org; Tue, 03 Oct 2006 07:48:33 -0400 Received: from [129.194.9.209] (helo=mbox.unige.ch) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GUirR-0000ux-Az for grub-devel@gnu.org; Tue, 03 Oct 2006 07:54:57 -0400 Received: from conversion-daemon.mbox.unige.ch by mbox.unige.ch (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0J6K00H0163Q0600@mbox.unige.ch> (original mail from luca@pca.it) for grub-devel@gnu.org; Tue, 03 Oct 2006 13:48:32 +0200 (CEST) Received: from gismo.pca.it ([129.194.56.110]) by mbox.unige.ch (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTP id <0J6K00G2Y64MZJ00@mbox.unige.ch> for grub-devel@gnu.org; Tue, 03 Oct 2006 13:48:22 +0200 (CEST) Received: by gismo.pca.it (Postfix, from userid 1000) id C363DBF8E; Tue, 03 Oct 2006 13:48:21 +0200 (CEST) Date: Tue, 03 Oct 2006 13:48:18 +0200 From: Luca Capello In-reply-to: <87wt7hhe2x.fsf@gismo.pca.it> To: grub-devel@gnu.org Mail-followup-to: Luca Capello , 390473@bugs.debian.org, grub-devel@gnu.org Message-id: <87k63hhb7h.fsf@gismo.pca.it> MIME-version: 1.0 Content-type: multipart/signed; protocol="application/pgp-signature"; micalg=sha1; boundary="===-=-=" References: <20061002151012.GA31110@khazad.dyndns.org> <87wt7hhe2x.fsf@gismo.pca.it> X-Comment: This message was scanned against viruses by mbox.unige.ch. User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Subject: Re: grub2: menuentry stanza doesn't accept $ { } in variable substitutions X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2006 11:48:36 -0000 --===-=-= Content-Type: multipart/mixed; boundary="==-=-=" --==-=-= Content-Transfer-Encoding: quoted-printable Hello all, this is my first post on this list :-) I'm resending my previous mail which was directly rejected: I was aware of the fact that grub-devel is a subscribed-only list, but I (erroneously) thought there was a sort of administrator. Never mind... I'm posting here as suggested by Robert Millan, including the original Debian bug report, available at: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D390473 Thx, bye, Gismo / Luca On Tue, 03 Oct 2006 12:46:14 +0200, Luca Capello wrote: > Hi Robert! > > To the grub-devel guys: attached the report of a grub2 bug I > experienced on Debian (marco_g should already be aware of). In case > of replies, please cc: the Debian BTS and myself (I set R-T and M-F-T > accordingly). > > On Mon, 02 Oct 2006 17:10:12 +0200, Robert Millan wrote: >> Given that this is treated as a syntax error, I don't consider it to >> be release critical (it is important, though, on the basis that a >> non-release Debian platform depends on it). > > Well, given the definition of critical [1] and the fact that with the > old menu.lst converted to grub.cfg my system broke, I chose critical. > However, I agree that mine could be considered a not-so-common case, > thus I'm fine with important :-) > >> I would like not to diverge from upstream, specialy since GNU/Hurd >> is a platform we expect them to support. Please, could you resend >> your report to them ? (grub-devel@gnu.org). > > Done (and marked the Debian bug as forwarded). > > I should note that thanks to the help of #hurd and #grub of Freenode > (mostly marco_g ;-) ), the problem is solved escaping the "bad" > characters within single quotes. > > Anyway, I still consider it an important bug (at least because there's > no documentation for it). Waiting for an upstream solution, I'll put > a note in the README.Debian (or better in the NEWS.Debian, which is > showed during upgrades). > > Thx, bye, > Gismo / Luca > > Footnotes:=20 > [1] makes unrelated software on the system (or the whole system) > break, or causes serious data loss, or introduces a security hole > on systems where you install the package --==-=-= Content-Type: message/rfc822 Content-Disposition: attachment; filename=1 Content-Description: Debian bug #390473 Return-Path: Delivered-To: 20-luca@pca.it Received: (qmail 15047 invoked from network); 1 Oct 2006 16:05:52 +0200 Received: from spohr.debian.org (Debian-exim@140.211.166.43) by oratoriocasadelgiovane.it with SMTP; 1 Oct 2006 16:05:52 +0200 Received: from debbugs by spohr.debian.org with local (Exim 4.50) id 1GU1uV-0005SP-C1; Sun, 01 Oct 2006 07:03:15 -0700 X-Loop: owner@bugs.debian.org Subject: Bug#390473: grub2: menuentry stanza doesn't accept $ { } in variable substitutions Reply-To: Luca Capello , 390473@bugs.debian.org Resent-From: Luca Capello Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Luca Capello , GRUB Maintainers Resent-Date: Sun, 01 Oct 2006 14:03:11 +0000 Resent-Message-ID: X-Debian-PR-Message: report 390473 X-Debian-PR-Package: grub2 X-Debian-PR-Keywords: X-Debian-PR-Source: grub2 Received: via spool by submit@bugs.debian.org id=B.115971084814788 (code B ref -1); Sun, 01 Oct 2006 14:03:11 +0000 Received: (at submit) by bugs.debian.org; 1 Oct 2006 13:54:08 +0000 Received: from [195.32.84.213] (helo=dione.pcaserver.net) by spohr.debian.org with esmtp (Exim 4.50) id 1GU1lf-0003ng-NK for submit@bugs.debian.org; Sun, 01 Oct 2006 06:54:08 -0700 Received: (qmail 14151 invoked from network); 1 Oct 2006 15:52:59 +0200 Received: from 168.136.77.83.cust.bluewin.ch (HELO gismo.pca.it) (83.77.136.168) by malusardi.it with SMTP; 1 Oct 2006 15:52:59 +0200 Received: by gismo.pca.it (Postfix, from userid 1000) id 2CAAEBF86; Sun, 1 Oct 2006 15:54:03 +0200 (CEST) From: Luca Capello To: Debian Bug Tracking System Date: Sun, 01 Oct 2006 15:54:00 +0200 Message-ID: <878xk0dtvr.fsf@gismo.pca.it> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=sha1; protocol="application/pgp-signature" Delivered-To: submit@bugs.debian.org Resent-Sender: Debian BTS Resent-Date: Sun, 01 Oct 2006 07:03:15 -0700 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on dione.pcaserver.net X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=7.0 tests=BAYES_00 autolearn=ham version=2.63 Lines: 85 Xref: gismo.pca.it bugs.debian.#390473:1 --=-=-= Package: grub2 Version: 1.94+20060926-1 Severity: critical Hello, with the previous grub1 I had a Debian GNU/Hurd entry in my menu.lst: ===== title Debian GNU/Hurd root (hd0,9) kernel /boot/gnumach.gz root=device:hd0s10 module /hurd/ext2fs.static \ --multiboot-command-line=${kernel-command-line} \ --host-priv-port=${host-port} \ --device-master-port=${device-port} \ --exec-server-task=${exec-task} \ -T typed ${root} $(task-create) $(task-resume) module /lib/ld.so.1 /hurd/exec $(exec-task=task-create) boot ===== The first time I installed grub2 I "converted" that entry into the grub2 config menu: ===== menuentry "Debian GNU/Hurd" { set root=(hd0,9) multiboot /boot/gnumach.gz root=device:hd0s10 module /hurd/ext2fs.static \ --multiboot-command-line=${kernel-command-line} \ --host-priv-port=${host-port} \ --device-master-port=${device-port} \ --exec-server-task=${exec-task} \ -T typed ${root} $(task-create) $(task-resume) module /lib/ld.so.1 /hurd/exec $(exec-task=task-create) } ===== After a `grub-install /dev/hda` and a reboot, grub2 entered in a panic state at boot. Hopefully, the panic is reproducible, even on qemu: create the following stanza (you can substitute $ with a second { ): menuentry "test" { $ } The panic is similar to the error generated with a $ at the beginning of the grub.cfg file. While in the latter case grub2 can continue booting, in n the former case the only way to solve it is to boot with a rescue CD and remove the offending characters from grub2.cfg. Trying to escape \$ \{ and \} doesn't solve the problem. Thx, bye, Gismo / Luca -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages grub2 depends on: ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries ii liblzo1 1.08-3 data compression library (old vers ii libncurses5 5.5-4 Shared libraries for terminal hand grub2 recommends no packages. -- no debconf information --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFH8h7VAp7Xm10JmkRAptnAJ9/jlYe2CIs7nocGLeERXGiFlnEpgCfSBoL kdfdzM3QHWeSYx9hzGgHEfg= =X7m9 -----END PGP SIGNATURE----- --=-=-=-- --==-=-=-- --===-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFIk4FVAp7Xm10JmkRAoZ9AJ9A84HK49K64vLlMWQ+xdC2Z65sJgCcCQWS YjXkx7uvxcKNl3qyocIg0q8= =w24E -----END PGP SIGNATURE----- --===-=-=--