[SOLVED] Grub2: linux16 and initrd16 instead linux and initrd
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 11 of 11
  1. #1
    Join Date
    Feb 2010
    Location
    Costa de Caparica, Portugal
    Posts
    55

    Grub2: linux16 and initrd16 instead linux and initrd

    I don't know why but when I run "grub2-mkconfig -o /boot/grub2/grub.cfg" I get linux16 and initrd16 instead linux and initrd in the /boot/grub2/grub.cfg file.
    This has never happened to me before.
    Is it possible to revert this situation?
    Last edited by pfedort; 13th December 2014 at 12:13 AM.

  2. #2
    Join Date
    Feb 2010
    Location
    Costa de Caparica, Portugal
    Posts
    55

    Re: Grub2: linux16 and initrd16 instead linux and initrd

    Is this common or hard to fix?

  3. #3
    Join Date
    Jan 2011
    Posts
    1,116

    Re: Grub2: linux16 and initrd16 instead linux and initrd

    Have you tried looking into /etc/default/grub

    Code:
    The file /etc/default/grub controls the operation of grub-mkconfig. It is sourced by a shell script, and so must be valid POSIX shell input; normally, it will just be a sequence of ‘KEY=value’ lines, but if the value contains spaces or other special characters then it must be quoted.
    source:
    https://www.gnu.org/software/grub/ma...iguration.html

  4. #4
    Join Date
    Feb 2010
    Location
    Costa de Caparica, Portugal
    Posts
    55

    Re: Grub2: linux16 and initrd16 instead linux and initrd

    Yes, I've tried and found nothing.

  5. #5
    Join Date
    Dec 2014
    Location
    Stuttgart, Germany
    Posts
    2

    Re: Grub2: linux16 and initrd16 instead linux and initrd

    Why do you want to revert to linux and initrd?

  6. #6
    Join Date
    Feb 2010
    Location
    Costa de Caparica, Portugal
    Posts
    55

    Re: Grub2: linux16 and initrd16 instead linux and initrd

    Because Plymouth doesn't show up with linux16 and inirtd16. It falls back to text mode(tricolor progress bar).

  7. #7
    Join Date
    Jan 2011
    Posts
    1,116

    Re: Grub2: linux16 and initrd16 instead linux and initrd

    In the cfg file I think I saw something about GRUB looking into the font type if it was UTF8 it would choose the normal initrd and if not it would go with 16 bits, so you could try changing the font there.

  8. #8
    Join Date
    Feb 2010
    Location
    Costa de Caparica, Portugal
    Posts
    55

    Re: Grub2: linux16 and initrd16 instead linux and initrd

    Did you see that information in /boot/grub2/grub.cfg?

    I know TTF fonts but don't know UTF-8 fonts.

  9. #9
    Join Date
    Dec 2014
    Location
    Stuttgart, Germany
    Posts
    2

    Re: Grub2: linux16 and initrd16 instead linux and initrd

    I suppose you are writing about Fedora 21 on an x86_64 oder i?86 system?

    The lines with linux16 and initrd16 are generated by /etc/grub.d/10_linux .

    The function linux_entry contains

    linux${sixteenbit}
    initrd${sixteenbit}

    The variable sixteenbit is set in this part of function linux_entry:

    sixteenbit=""
    linuxefi="linux"
    initrdefi="initrd"
    case "$machine" in
    i?86|x86_64)
    sixteenbit="16"
    linuxefi="linuxefi"
    initrdefi="initrdefi"
    ;;
    aarch64)
    linuxefi="linux"
    initrdefi="initrd"
    ;;
    esac


    So, this shell script doesn't contain variables that can be set in /etc/default/grub . The decition to use the 16 bit variant is hard coded and only based on the hardware architecture.

    You can modify this script, but I think it may be overwritten by the next update of grub2-tools.


    Can you test if your problem is solved if you use linux and initrd?
    1. Log in as root (or use "sudo bash" to get a root shell).
    2. Save the original file /etc/grub.d/10_linux to a save place (but not in /etc/grub.d/ because each file will be executed by grub2-mkconfig).
    # cp -a /etc/grub.d/10_linux /root/etc-grub2-10_linux.original
    3. Modify the script:
    # sed -i -e 's/sixteenbit="16"/sixteenbit=""/' /etc/grub.d/10_linux
    4. Recreate grub.conf:
    # grub2-mkconfig -o /boot/grub2/grub.cfg
    5. Try to reboot and test if your problem still exists.

    If you need to undo the test configuration, do:
    1. Restore the script:
    # cp -a /root/etc-grub2-10_linux.original /etc/grub.d/10_linux
    2. Recreate grub.conf:
    # grub2-mkconfig -o /boot/grub2/grub.cfg


    If this solves your problem, please file a bug report against Fedora 21 package grub2-tools and describe what your problem is (on what hardware, what is displayed, etc.) and what changes solved it for you. Please add a descrition how the maintainers can reproduce your bug.

  10. #10
    Join Date
    Feb 2010
    Location
    Costa de Caparica, Portugal
    Posts
    55

    Re: Grub2: linux16 and initrd16 instead linux and initrd

    imsedgar,

    You solved my problem. Many thanks!!!

  11. #11
    Join Date
    Oct 2011
    Posts
    141

    Re: Grub2: linux16 and initrd16 instead linux and initrd

    I have created a bug report for this: https://bugzilla.redhat.com/show_bug.cgi?id=1196065
    Interesting projects I'm working on: http://www.green-spot.co.uk

Similar Threads

  1. Replies: 3
    Last Post: 6th March 2013, 12:26 PM
  2. Replies: 0
    Last Post: 27th January 2013, 09:34 AM
  3. [SOLVED]
    Grub2, dev modifications from satndard grub2 install
    By jakebpg in forum Using Fedora
    Replies: 16
    Last Post: 9th March 2012, 09:39 AM
  4. kernel panic with initrd=initrd.img in loadlin
    By jules in forum Installation, Upgrades and Live Media
    Replies: 4
    Last Post: 8th July 2004, 11:17 AM

Tags for this Thread

Posting Permissions

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