bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #50963] "normal" module interprets comments if using grub-mkimage


From: Bastiaan Teeuwen
Subject: [bug #50963] "normal" module interprets comments if using grub-mkimage
Date: Sun, 7 May 2017 06:03:05 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

URL:
  <http://savannah.gnu.org/bugs/?50963>

                 Summary: "normal" module interprets comments if using
grub-mkimage
                 Project: GNU GRUB
            Submitted by: teeuwen
            Submitted on: Sun 07 May 2017 10:03:04 AM UTC
                Category: Configuration
                Severity: Major
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Bastiaan Teeuwen
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: 2.02~rc1
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

*Steps to reproduce (on x86)*
1. Set up a root folder for the iso using "mkdir -p root/boot/grub"
2. Create a file at root/boot/grub/grub.cfg with the following contents:
"
#
# Some comment
#

sleep 1000
" (for some reason "halt --no-apm" didn't work for me in qemu, also a bug
perhaps?).
3. Create a grub image with grub-mkimage: "grub-mkimage -p root/boot/grub -c
root/boot/grub/grub.cfg -o bin/grub.img -O i386-pc normal sleep"
4. "cat /usr/lib/grub/i386-pc/cdboot.img grub.img > root/grub.img".
5. Create an iso with "genisoimage -b grub.img -no-emul-boot -boot-load-size 4
-boot-info-table -o grub.iso root/".
6. Boot the iso on any x86 machine or emulator.

*Expected behavior*
The grub.cfg file should be parsed correctly and no warnings should show on
startup.

*Actual result*
The comments are interpreted instead of ignored and GRUB2 throws warnings
about how '#' isn't a command (as shown in the screenshot).

I should note that this doesn't happen if the image is created using
grub-mkrescue.

The software I'm using is:
* GRUB 2.02~rc1
* mkisofs 3.02a07
* QEMU 2.8.0
all running on x86_64 GNU/Linux 4.10.2-1-ARCH. Packages described above are
all from the Arch Linux repos.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 07 May 2017 10:03:04 AM UTC  Name:
2017-05-07-114407_3200x1080_scrot.png  Size: 4kB   By: teeuwen

<http://savannah.gnu.org/bugs/download.php?file_id=40608>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50963>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]