Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

localboot.cfg example #301

Open
wpoely86 opened this issue Oct 30, 2018 · 2 comments
Open

localboot.cfg example #301

wpoely86 opened this issue Oct 30, 2018 · 2 comments
Milestone

Comments

@wpoely86
Copy link
Member

The example localboot.cfg shipped with aii-server is for PXELinux only. An example for UEFI PXE with grub should be added.

This works for me (with chainloading):

set default=0
set timeout=0

menuentry "Local Disk" {
        insmod chain
        search --set=root --file /EFI/centos/grubx64.efi
        chainloader /EFI/centos/grubx64.efi
}
@jrha
Copy link
Member

jrha commented Jul 27, 2022

This worked great until we had to support more than one distribution with the same set of boot-servers, so we came up with:

default=0
timeout=3

menuentry "Continue to boot from Local Disk" {
    insmod chain
    insmod normal

    echo "Searching for bootloaders..."

    for osname in centos rocky sl rhel; do
        echo -n "- $osname... "
        if search --no-floppy --set=root --file /EFI/$osname/grubx64.efi; then
            echo "Found!"
            chainloader /EFI/$osname/grubx64.efi;
            break
        else
            echo
        fi
    done

    echo
    echo "Boot will continue in a few seconds..."
}

@jrha jrha added this to the 22.8 milestone Jul 27, 2022
@jrha jrha modified the milestones: 23.12, 23.next, 23.6 Jun 23, 2023
@jrha jrha modified the milestones: 23.9, 23.next Oct 2, 2023
@jrha
Copy link
Member

jrha commented Oct 2, 2023

Need to work out what to do with this, add it to the documentation somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants