Bug#549444: grub-pc: menuentry in if clause causes syntax error

Jameson Graef Rollins jrollins at finestructure.net
Sat Oct 3 12:32:17 UTC 2009


Package: grub-pc
Version: 1.97~beta3-1
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Here is a simple illustration of the problem from the grub shell:

sh:grub> if true ; then
sh:> menuentry foo {
syntax error
Incorrect command
syntax error
sh:grub>

I can't see any reason why one shouldn't be able to put a menuentry in
a if clause, so I assume this is a bug.  It would be very good if this
worked, as it would greatly fascilitate building of on-the-fly
menuentries.

Thanks.

jamie.


- -- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]       1.5.27       Debian configuration management sy
ii  grub-common                 1.97~beta3-1 GRand Unified Bootloader, version 
ii  libc6                       2.9-25       GNU C Library: Shared libraries
ii  ucf                         3.0022       Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
ii  desktop-base                  5.0.5      common files for the Debian Deskto
ii  genisoimage                   9:1.1.9-1  Creates ISO-9660 CD-ROM filesystem

- -- debconf information:
  grub2/kfreebsd_cmdline:
* grub2/linux_cmdline: vga=791
* grub-pc/chainload_from_menu.lst: true
  grub-pc/kopt_extracted: true
  grub-pc/postrm_purge_boot_grub: false
  grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default:
* grub-pc/install_devices: /dev/hda

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCAAGBQJKx0ROAAoJEO00zqvie6q8VPUP/118KDkJh8Q4gD7m0lYAE/xW
PbY6xsOB6SorxHPanF4qst/Z8q+c/xTfuc1K8VLaJKXcLC9HD8NQ8GjPXKalZIw+
Tco6Q28WNTwYEOmIPCOaYBDYwtf00EuO5MtEvQwM4ISYyJmAXZdgFuyYXY2IqJZs
eGmHekLnYcu5moExj4olz2EQfnUqcdOYNIUz8wDDDI7j6NRkIeQKvacCheSpaEis
dWoMPm3L6tr+USGULd2oPXpsdgjgCD6uNHG1neiwwtZ2R6IN6Lh7hzSOJtgYe0a1
m7o/mMwYZ3KFotpsh8NkQgQWIrwcSaANQDatMpr4sNBw6wgpHDTk1bsu7Yu8rXu0
AgEArJ1U/udMZR7OyLqW256Qafl7l/FFj35G3BCsV91SPGazSA719EJKv32urbkm
iYldP6Ef+lMarCiwqr/OuWgyVTVceXmuqKR7zM2lbfZdHH+9mBEKEq1KQVTK99rU
IjFkSoaRzB7nMXDISaYDUy2TYLML8i1ZP/Xb20SxcgsNUuU8yje44F1mKZb4lhVG
n1MXF5RNzv+zwEPOmnXHJND+prncMfescP3M12kf0PuA/to1umAzf2DcumRF5e20
RNw4boU+5q59fWnkkZUuZoMF0hmvFxo6FRGE1NvlBPLfVq9uUTISjzRyiHymDG0w
MIpAV7Apw6idhGQxhVLf
=zlJ9
-----END PGP SIGNATURE-----





More information about the Pkg-grub-devel mailing list