You are not logged in.

#1 2025-07-12 12:25:58

ktauchathuranga
Member
Registered: 2025-05-25
Posts: 8

Linux kernel "No EFI Envirement Detected" message suppress in BIOS

hi...
i have my linux kernel built with EFI stub support.
and i setup to my OS to work on both BIOS and UEFI
and i my grub config like this,

set timeout=5
set default=0

# This menu entry will be automatically hidden by GRUB in BIOS mode.
# It will only be visible when booting via UEFI.
if [ "\$grub_platform" = "efi" ]; then
    menuentry "${OS_NAME} (UEFI Mode)" {
        linux /boot/bzImage quiet loglevel=3 console=tty0
    }
fi

# This menu entry will be automatically hidden by GRUB in UEFI mode.
# It will only be visible when booting via BIOS.
if [ "\$grub_platform" = "pc" ]; then
    menuentry "${OS_NAME} (BIOS Mode)" {
        linux /boot/bzImage quiet loglevel=3 console=tty0 noefi
    }
fi

# A verbose/debug entry that is always visible.
menuentry "${OS_NAME} (Verbose Debug Mode)" {
    linux /boot/bzImage console=tty0 console=ttyS0
}

but even i pass noefi in BIOS mode, i still see the message which says "No EFI Environment Detected"
how to remove/supress that warning?

thank uuu...
smile

Offline

#2 2025-07-12 13:38:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,725

Re: Linux kernel "No EFI Envirement Detected" message suppress in BIOS

What does this have to do with Arch?

Offline

#3 2025-07-13 15:56:24

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,623

Re: Linux kernel "No EFI Envirement Detected" message suppress in BIOS

Is this an Arch question?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB