Page 55 of 55 FirstFirst ... 545535455
Results 541 to 546 of 546

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

  1. #541
    Join Date
    Aug 2009
    Beans
    Hidden!
    Distro
    Xubuntu 18.04 Bionic Beaver

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

    In Fedora and MX Linux, it does not create symlinks for the vmlinuz and initrd like most Linux systems.

    But, I created a script that will create them after the kernel is installed. If anyone wants to know how it works, I gots it.

  2. #542
    Join Date
    Aug 2009
    Beans
    Hidden!
    Distro
    Xubuntu 18.04 Bionic Beaver

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

    I have 4 drives in this computer.


    1. dev/sda - TOSHIBA 2TB HDD
    2. dev/sdb - TOSHIBA 2TB HDD
    3. dev/sdc - WD Blue 1TB SSD
    4. dev/sdd - OCZ Vertex 480GB SSD


    The 2nd TOSHIBA apparently is bad because it prevented it from booting when connected.
    So, I disconnected it and sdc became sdb but, my custom grub didn't skip a beat because it is tied to UUIDs and not drives.

    I believe if I were using default grub, it would have needed some adjustments. Another reason to use a custom grub.

  3. #543
    Join Date
    Aug 2009
    Beans
    Hidden!
    Distro
    Xubuntu 18.04 Bionic Beaver

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

    Anyone multi-booting with Fedora 30, I finally figured out how to produce the kernel symlinks with this script: (the one I was using in Fedora 28,29 didn't work in 30)
    Code:
    #!/bin/bash
    #
    
    # We're passed the kernel version being installed
    KERNEL_VERSION="$1"
    
    ln -s -f "initramfs-"${1}".img" /boot/initrd.img
    
    ln -s -f "vmlinuz-"${1} /boot/vmlinuz
    
    echo "   SUCCESS: symlink initrd.img created for "initramfs-"${1}".img"" >&2
    echo "   SUCCESS: symlink vmlinuz created for "vmlinuz-"${1}" >&2
    
    exit 0
    Save it as 52-symlink-kernel and if it's in your home directory, you would first make it executable sudo chmod +x 52-symlink-kernel
    Then to install it you would use this command:
    Code:
    sudo install 52-symlink-kernel /etc/kernel/postinst.d/52-symlink-kernel
    Then in the terminal output of a new kernel installation you will see the SUCCESS lines. You can check in /boot with ls -lA and verify that they are symlinked correctly.

    Cheers

  4. #544
    Join Date
    Aug 2009
    Beans
    Hidden!
    Distro
    Xubuntu 18.04 Bionic Beaver

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

    Custom grub on Fedora 31. No background, colors or fonts; just a custom menu:



    The script above that works in 30 also works in 31 to create the kernel symlinks.

  5. #545
    Join Date
    May 2007
    Location
    albuquerque
    Beans
    577
    Distro
    Kubuntu 18.04 Bionic Beaver

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

    From the linked page:

    Although it says not to, you will need to change
    exec tail -n +3 $0 to
    exec tail -n +4 $0
    Why?

  6. #546
    Join Date
    May 2007
    Location
    albuquerque
    Beans
    577
    Distro
    Kubuntu 18.04 Bionic Beaver

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

    Oh, and thanks very much for all the work on that "MaintenanceFreeCustomGrub2Screen" page, and this thread -- it's all been a big help to me. I've done lots of maintenance-free grub setups in the past, dual-booting or multi-booting. I used these valuable resources most recently to set up a maintenance-free grub for dual-booting two Debian Buster systems.

Page 55 of 55 FirstFirst ... 545535455

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
  •