bugGNU GRUB - Bugs: bug #41356, grub-mkconfig produces incorrect...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #41356: grub-mkconfig produces incorrect output ('t' instead of 't' hard tab)

Submitter:  Jens Schweikhardt <schweikh>
Submitted:  Sun 26 Jan 2014 07:21:20 PM UTC
   
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name:  Jens Schweikhardt
Open/Closed:  Closed Release:  2.00
Release:  Reproducibility:  Every Time
Planned Release:  None

Sun 26 Jan 2014 09:08:42 PM UTC, comment #2: 

long since fixed for 2.02~beta2

Vladimir Serbinenko <phcoder>
Group administrator
Sun 26 Jan 2014 07:27:25 PM UTC, comment #1: 

AAAAARRRRRGGGGGHHHHH! The Web interface eats all the backslashes which are vital to understand what the bug report is about.

Where you see

   this happens due to commands like sed -e "s/^/t/"
   submenu_indentation="t"

you must read it as

   this happens due to commands like sed -e "s/^/<backslash>t/"
   submenu_indentation="<backslash>t"

etc.

Jens Schweikhardt <schweikh>
Sun 26 Jan 2014 07:21:20 PM UTC, original submission:  

I'm using grub 2.00 on FreeBSD 10-STABLE.
grub-mkconfig produces output that looks like this:

submenu ... {
tmenuentry 'FreeBSD, with kFreeBSD kernel' --class freebsd --class bsd --class os $menuentry_id_option 'kfreebsd-kernel-advanced-52e18a1b003705c2' {
ttinsmod part_msdos
ttinsmod ufs2
ttif [ x$feature_platform_search_hint = xy ]; then
tt  search --no-floppy --fs-uuid --set=root  52e18a1b003705c2
ttelse
tt  search --no-floppy --fs-uuid --set=root 52e18a1b003705c2
ttfi
t   echo            'Loading kernel of FreeBSD kernel ...'
t   kfreebsd        /boot/kernel/kernel
t   kfreebsd_loadenv    /boot/device.hints
ttinsmod part_msdos
ttinsmod ufs2
ttif [ x$feature_platform_search_hint = xy ]; then
tt  search --no-floppy --fs-uuid --set=root  52e18a1b003705c2
ttelse
tt  search --no-floppy --fs-uuid --set=root 52e18a1b003705c2
ttfi
t   kfreebsd_module_elf /boot/kernel/ufs.ko
t   set kFreeBSD.vfs.root.mountfrom=ufs:ufsid/52e18a1b003705c2
t   set kFreeBSD.vfs.root.mountfrom.options=rw
t}




This happens due to commands like

   sed -e "s/^/t/"

which use the non-portable GNUism in GNU sed of t meaning tab.
POSIX sed requires this to replace the start of line with a "t" character and that's what FreeBSD's sed does.

Another case to fix is
submenu_indentation="t"    # assigns backslash followed by t
sed -e "s/..../$submenu_indentation/"

Jens Schweikhardt <schweikh>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by schweikh (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-01-26 phcoder StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code