The code snippet you included doesn't load anything; it defines a function.
In any case, a quick google turned up this among the first hits: https://groups.google.com/g/linux.debian.bugs.dist/c/YrG4hFrUam4 https://www.google.com/search?q=%22error%3A+no+server+is+specified%22+grub On Thu, Mar 16, 2023 at 5:40 PM Bart Heideck via Support requests for the GRand Unified Bootloader <[email protected]> wrote: > > > Hello everyone, > > > a few weeks ago I converted my harddisk from MBR to GPT. In principle > everything works nicely, booting via UEFI/grub etc. However shortly after > POST grub shows two errors: > > error: no server is specified > error: no suitable video mode found > > What I've found on the internet: The first error seems to appear when using > an encrypted filesystem and grub cannot access some files. However I'm using > a single, unencrypted partition for Linux (Mint) with the /boot folder on / > root. And booting, accessing the kernel, boot logo seems to work just fine. > > The second error is said to be resolved by specifying "insmod all_video", > according to this list. My grub.cfg file already contains this line: > > ------ > function load_video { > if [ x$feature_all_video_module = xy ]; then > insmod all_video > else > insmod efi_gop > insmod efi_uga > insmod ieee1275_fb > insmod vbe > insmod vga > insmod video_bochs > insmod video_cirrus > fi > } > ------ > > So I'm now at loss here. I cannot find a proper documentation on this error > and the "solutions" from the internet don't do it for me. Maybe soneone here > can give me some advice on how to proceed? > > Pleaselet me know if you need more information on the system or the > configfiles. > > Thankyou in advance for your support. > Bart >
