Page 53 of 53 FirstFirst ... 343515253
Results 521 to 525 of 525

Thread: How to have a custom Grub2 menu that is maintenance free

  1. #521
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    3,670

    Re: How to have a custom Grub2 menu that is maintenance free

    You may be able to just copy Arch menuentry from the Arch grub.cfg and use that in your Ubuntu custom menus.

    I use Manjaro, and have done that to get Ubuntu to boot Manjaro. Otherwise, Ubuntu grub creates the same error when generating the Manjaro grub menu entry.

    Manjaro is a distro based on Arch linux.

  2. #522
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: How to have a custom Grub2 menu that is maintenance free

    Quote Originally Posted by Dennis N View Post
    You may be able to just copy Arch menuentry from the Arch grub.cfg and use that in your Ubuntu custom menus.

    I use Manjaro, and have done that to get Ubuntu to boot Manjaro. Otherwise, Ubuntu grub creates the same error when generating the Manjaro grub menu entry.

    Manjaro is a distro based on Arch linux.
    +1 This also works.
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

  3. #523
    Join Date
    Aug 2009
    Location
    East Coast of Florida
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: How to have a custom Grub2 menu that is maintenance free

    Quote Originally Posted by Dennis N View Post
    You may be able to just copy Arch menuentry from the Arch grub.cfg and use that in your Ubuntu custom menus.

    I use Manjaro, and have done that to get Ubuntu to boot Manjaro. Otherwise, Ubuntu grub creates the same error when generating the Manjaro grub menu entry.

    Manjaro is a distro based on Arch linux.
    I had an idea that Manjaro did the same. Thanks for confirming that.

    I just do not like editing the grub.cfg file for any reason. If my grub is on Ubuntu I'll use the falllback kernel.
    But, I do like having it on Arch as I can use the normal kernel.

    Grub updated on Xenial Xerus 16.04 this morning and I thought It might fix another problem I'm having with it but, it did not.
    So, my grub will go back to Arch for the time being.

    But, this bug needs to be fixed and the more people that sign on to it, the better.
    Creating a Custom Maintenance Free GRUB2 Screen Community Wiki
    Creating a Custom Maintenance Free GRUB2 Screen on Arch Linux
    Intel Core i7-4770K, NVIDIA GeForce GTX 980 Ti, Mobo: ASUSTeK, model: Z87-K, Mem: 16GB, Sound Blaster Audigy Series

  4. #524
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    3,670

    Re: How to have a custom Grub2 menu that is maintenance free

    I just do not like editing the grub.cfg file for any reason.
    I didn't edit any grub.cfg when I did this, only copied the menu entry for Manjaro from the Manjaro /boot/grub/grub.cfg, pasted the copied entry into the template 40_custom file, then saved it in Ubuntu's /etc/grub.d. I created a new file, but you could add to an existing custom menu file. (You can have any number of custom menu files in /etc/grub.d. No matter - they all get merged into a single grub.cfg when you or the OS executes the update-grub command or its equivalent).
    Last edited by Dennis N; 4 Weeks Ago at 02:32 PM.

  5. #525
    Join Date
    Aug 2009
    Location
    East Coast of Florida
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: How to have a custom Grub2 menu that is maintenance free

    I just do not like editing the grub.cfg file for any reason.
    Quote Originally Posted by Dennis N View Post
    I didn't edit any grub.cfg when I did this, only copied the menu entry for Manjaro from the Manjaro /boot/grub/grub.cfg, pasted the copied entry into the template 40_custom file, then saved it in Ubuntu's /etc/grub.d. I created a new file, but you could add to an existing custom menu file. (You can have any number of custom menu files in /etc/grub.d. No matter - they all get merged into a single grub.cfg when you or the OS executes the update-grub command or its equivalent).
    Oh, thanks for the clarification. In my Wiki I say to edit the /etc/grubd/40_custom file but, then save it as /etc/grub.d/06_custom so that it appears on top. (Ranch hand's original idea)
    Then when you're sure all of the custom entries work you make 10_linux, 20_memtest86+ and 30_os-prober unexecutable so they no longer appear.

    Just so you get some output on an update-grub execution, you do change the part it says not to change so you can add an echo line: (Drs305's original idea)
    Code:
    #!/bin/sh
    echo 1>&2 "Adding system 1, system 2, etc."
    exec tail -n +4 $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.
    The +3 you change to +4 so that the 4th line is where execution starts (menuentry).

    With Legacy/MBR partitioned systems, that works flawlessly but, so far on UEFI/GPT partitioned systems not so much...

    D'oh! Now I see where you said you added it to your custom entry.
    Creating a Custom Maintenance Free GRUB2 Screen Community Wiki
    Creating a Custom Maintenance Free GRUB2 Screen on Arch Linux
    Intel Core i7-4770K, NVIDIA GeForce GTX 980 Ti, Mobo: ASUSTeK, model: Z87-K, Mem: 16GB, Sound Blaster Audigy Series

Page 53 of 53 FirstFirst ... 343515253

Tags for this Thread

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
  •