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)

Submitted by:  Jens Schweikhardt <schweikh>
Submitted on:  Sun 26 Jan 2014 07:21:20 PM UTC  
 
Category: ConfigurationSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: Jens Schweikhardt
Open/Closed: ClosedRelease: 
Release: 2.00Reproducibility: 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>
Project 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 26 Jan 2014 09:08:42 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1