Results 1 to 3 of 3

Thread: Grub2 syntax errors with 40_custom entries

Threaded View

  1. #1
    Join Date
    Mar 2010
    Location
    George, South Africa
    Beans
    26
    Distro
    Ubuntu

    Arrow Grub2 syntax errors with 40_custom entries

    Hello,

    After successfully installing a remastersys backup of Kubuntu 12.04, I disabled the os prober and added the entries I require in /etc/grub.d 40_custom as below:-
    Code:
    #!/bin/sh
    echo "Adding 40_custom menu entries." >&2
    exec tail -n +3 $0
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    
    cat << EOF
    menuentry "Kubuntu 12.04 Symlink Boot" {
         linux /vmlinuz root=UUID=10b378dc-f796-429e-8d00-f54da50649d7 ro quiet splash $vt_handoff
        initrd /initrd.img
    }
    EOF 
     
    cat << EOF
    menuentry "Scientific linux 6.3" {
        set root=(hd1,5)
        chainloader +1    
    }
    EOF


    Now, despite everything booting from the grub menu, everytime I run sudo update-grub there are syntax errors and a grub.cfg.new file is added.
    If I remove the entries in 40_custom there are no more errors when running update-grub.
    What could be the cause ? Should I ignore this as the grub menu and booting the kernels is fine ?

    Edit: There are 2 Kubuntu 12.04,s now - I intend to upgrade the symlinked one to 12.10 later.
    Last edited by moon_raker; November 24th, 2012 at 11:54 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •