Re: How do I update the boot banner?

Paul Goyette <[email protected]>
Newsgroups gmane.os.netbsd.current
Message-ID <[email protected]>
Check out $SRC/sys/lib/libsa/bootcfg.c

...
void
print_bootcfg_banner(const char *bootprog_name, const char 
*bootprog_rev)
{
         int n = 0;

         if (bootcfg_info.banner[0]) {
                 for (; n < BOOTCFG_MAXBANNER && bootcfg_info.banner[n]; 
n++)
                         printf("%s\n", bootcfg_info.banner[n]);
                 return;
         }

         /* If the user has not specified a banner, print a default one. 
*/

         printf("\n");
         printf("  \\\\-__,------,___.\n");
         printf("   \\\\        __,---`  %s\n", bootprog_name);
         printf("    \\\\       `---,_.  Revision %s\n", bootprog_rev);
         printf("     \\\\-,_____,.---`\n");
         printf("      \\\\\n");
         printf("       \\\\\n");
         printf("        \\\\\n\n");
}
...


:-)


On Fri, 17 Oct 2025, Paul Goyette wrote:

> Hmmm....
>
> # mount /efi
> # ls -lR /efi
> total 96
> -rwxrwxr-x  1 root  wheel    779 Oct  4 10:37 boot.cfg
> drwxrwxr-x  1 root  wheel  32768 Jan 31  2025 efi
> drwxrwxr-x  1 root  wheel  32768 Jan 31  2025 netbsd
>
> /efi/efi:
> total 32
> drwxrwxr-x  1 root  wheel  32768 Jan 31  2025 boot
>
> /efi/efi/boot:
> total 512
> -r-xr-xr-x  1 root  wheel  238608 May 13 05:21 bootx64.efi
> -r-xr-xr-x  1 root  wheel  238608 Mar 22  2025 bootx64.efi.save
>
> /efi/netbsd:
> total 32
> -rwxrwxr-x  1 root  wheel  1201 Jan 31  2025 boot.cfg
> # more /efi/boot.cfg
> banner=++++++++++++++++++++++++++++++++++
> banner=+ NetBSD EFI boot (nvme, std loc)+
> banner=+    ***** Hooray! *****         +
> banner=+ NAME=NVME-EFI:/boot.cfg        +
> banner=++++++++++++++++++++++++++++++++++
> banner=
> banner=Please select from the following menu:
>
> # configuration issues
>
> userconf=disable dwiic*
>
> # boot defaults
>
> rndseed=/var/db/entropy-file
> dev=NAME=NVME-sys:
>
> #menu attributes
>
> default=1
> timeout=5
> clear=1
>
> menu=Boot /SPEEDY/kernel normally:boot SPEEDY
> menu=Boot /SPEEDY/kernel single user:boot SPEEDY -s
> menu=Boot /GENERIC/kernel normally:boot GENERIC
> menu=Boot /GENERIC/kernel single user:boot GENERIC -s
> menu=Boot /SPEEDY.old/kernel single user:boot SPEEDY.old -s
> menu=Drop to boot prompt:prompt
> menu=Run memory test (amd64):boot /usr/pkg/mdec/memtestplus
> #
>
>
> On Fri, 17 Oct 2025, Hisashi T Fujinaka wrote:
>
>> On Fri, 17 Oct 2025, Paul Goyette wrote:
>> 
>>> On Fri, 17 Oct 2025, Hisashi T Fujinaka wrote:
>>>
>>>>  I'm on an x86_84 EFI boot machine running NetBSD-11 and when I boot up
>>>>  it has the "Install Boot" banner instead of the ascii flag and "Welcome
>>>>  to NetBSD". It seems to affect nothing, but can I fix it? I tried
>>>>  copying /usr/mdec/bootx64.efi to /EFI/BOOT/BOOTX64.EFI at someone's
>>>>  suggestions but that wasn't it.
>>>>
>>>>  Anybody have any ideas for me?
>>> 
>>> Mount  your  efi partition and look at ${EFI}boot.cfg for the
>>> "banner" lines...
>> 
>> I don't see any cfg files.
>> 
>> /mnt/EFI 1029 % find .
>> .
>> ./BOOT
>> ./BOOT/BOOTIA32.EFI
>> ./BOOT/BOOTX64.EFI
>> ./BOOT/FBIA32.EFI
>> ./BOOT/FBX64.EFI
>> ./FEDORA
>> ./FEDORA/GRUB.CFG
>> ./FEDORA/BOOTIA32.CSV
>> ./FEDORA/BOOTX64.CSV
>> ./FEDORA/GCDIA32.EFI
>> ./FEDORA/GCDX64.EFI
>> ./FEDORA/GRUBIA32.EFI
>> ./FEDORA/GRUBX64.EFI
>> ./FEDORA/MMIA32.EFI
>> ./FEDORA/MMX64.EFI
>> ./FEDORA/SHIM.EFI
>> ./FEDORA/SHIMIA32.EFI
>> ./FEDORA/SHIMX64.EFI
>> ./Dell
>> ./Dell/BootOptionCache
>> ./Dell/BootOptionCache/BootOptionCache.dat
>> 
>> I guess I can delete the FEDORA directory now but that's all I see.
>> 
>> -- 
>> Hisashi T Fujinaka - [email protected]
>> BSEE + BSChem + BAEnglish + MSCS + $2.50 = coffee
>> 
>> !DSPAM:68f2e38175949590220406!
>> 
>> 
>
> +---------------------+--------------------------+----------------------+
> | Paul Goyette (.sig) | PGP Key fingerprint:     | E-mail addresses:    |
> | (Retired)           | 1B11 1849 721C 56C8 F63A | [email protected]    |
> | Software Developer  | 6E2E 05FD 15CE 9F2D 5102 | [email protected]  |
> | & Network Engineer  |                          | [email protected] |
> +---------------------+--------------------------+----------------------+
>

+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)           | 1B11 1849 721C 56C8 F63A | [email protected]    |
| Software Developer  | 6E2E 05FD 15CE 9F2D 5102 | [email protected]  |
| & Network Engineer  |                          | [email protected] |
+---------------------+--------------------------+----------------------+
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.