Menu

Setting custom menu entries hazard

lepou
2021-11-02
2021-11-02
  • lepou

    lepou - 2021-11-02

    My kernel is at /boot/vmlinuz-5.13-x86_64
    I've tried these:
    loader vmlinuz-5.13-x86_64
    loader /vmlinuz-5.13-x86_64
    loader boot/vmlinuz-5.13-x86_64
    loader boot\vmlinuz-5.13-x86_64
    loader /boot/vmlinuz-5.13-x86_64
    loader \boot\vmlinuz-5.13-x86_64
    None works.

    refind itself if I set it to auto-detect says: Boot
    boot\vmlinuz-5.13-x86_64 from root

    I just wanted to bypass all the grubs and make a nice looking
    bootloader with just the entries I needed but it's just not happening,
    I don't get it really, I'm frustrated. Please someone, shed some light.

     
  • joevt

    joevt - 2021-11-02

    What's wrong with the boot\vmlinuz-5.13-x86_64 option that rEFInd auto detects?

    Or do you mean there's nothing wrong with auto-detect; you just want to recreate the option without auto-detect?

    Can you show the custom menu stanza in your config?

    The config file has a couple examples:

    # A sample entry for a Linux 3.13 kernel with EFI boot stub support
    # on a partition with a GUID of 904404F8-B481-440C-A1E3-11A5A954E601.
    # This entry includes Linux-specific boot options and specification
    # of an initial RAM disk. Note uses of Linux-style forward slashes.
    # Also note that a leading slash is optional in file specifications.
    #
    menuentry Linux {
        volume 904404F8-B481-440C-A1E3-11A5A954E601
        icon EFI/refind/icons/os_linux.png
        loader bzImage-3.3.0-rc7
        initrd initrd-3.3.0.img
        options "ro root=UUID=5f96cafa-e0a7-4057-b18f-fa709db5b837"
    }
    
    # Below is a more complex Linux example, specifically for Arch Linux.
    # This example MUST be modified for each specific installation. If nothing
    # else, the PARTUUID code must be changed to match the disk in use. As Arch
    # Linux does not include version numbers in its kernel and initrd filenames,
    # manual boot stanzas may be required when using fallback initrds or multiple
    # kernels with Arch Linux. This example is modified from one in the Arch wiki
    # page on rEFInd (https://wiki.archlinux.org/index.php/rEFInd).
    #
    menuentry "Arch Linux" {
        volume   "Arch Linux"
        icon     /EFI/refind/icons/os_arch.png
        loader   /boot/vmlinuz-linux
        initrd   /boot/initramfs-linux.img
        options  "root=PARTUUID=5028fa50-0079-4c40-b240-abfaf28693ea rw add_efi_memmap"
        submenuentry "Boot using fallback initramfs" {
            initrd /boot/initramfs-linux-fallback.img
        }
        submenuentry "Boot to terminal" {
            add_options "systemd.unit=multi-user.target"
        }
    }
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.