A shell script to list grub's top-level menu entries.
With the -g
option it also adds a glyph to the entries.
Arch Linux users can get it from the AUR: paru -S grub-entries-git
.
Otherwise, clone the repository and run sudo make install
.
A shell script to list grub's top-level menu entries.
License: GNU General Public License v3.0
I have working menuentry
s with numbers, and grub-entries
does not print the numbers:
I have the following menuentry
s (output of grep ^menuentry /boot/grub/grub.cfg
):
menuentry '[0] Artix, kernel vmlinuz-linux version 5.17.8-artix1-1.' {
menuentry '[1] Artix, kernel vmlinuz-linux-xanmod-anbox version unknown_version.' {
menuentry '[2] Artix, kernel vmlinuz-linux-pf version 5.18.0-pf1.' {
menuentry '[3] Artix, kernel vmlinuz-linux-pf-custom version 5.18.0-pf1-longcmdline-custom.' {
menuentry '[4] Artix, kernel vmlinuz-linux-pf-m14t-custom version 5.17.0-pf5-longcmdline-m14t-custom.' {
menuentry '[EFI] Windows boot manager' {
menuentry '[EFI] GRUB2 Filemanager' {
menuentry '[EFI] Clover boot loader' {
menuentry '[EFI] Artix GRUB' {
menuentry '[EFI] PLoP-Kexec Boot Manager' {
menuentry '[EFI] memtest86+' {
menuentry '[EFI] syslinux' {
menuentry '[EFI] Default "/EFI/boot/bootx64.efi"' {
menuentry '[other] PLoP Boot Manager 5' {
menuentry '[other] PLoP Boot Manager 6' {
menuentry '[other] PLoP-Kexec Boot Manager' {
menuentry '[other] memtest86+' {
menuentry 'Artix Linux' --class artix --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c108f006-6047-4082-8720-f88426ea9edb' {
menuentry 'Windows Boot Manager (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-efi-852B-FF15' {
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
menuentry "Bootable Floppy Image: FreeDos_1.2_Floppy" {
menuentry "Alpine Netboot" {
menuentry "Arch Linux Netboot" {
menuentry 'Reboot' --class tool --id reboot {
menuentry 'Poweroff' --class tool --id poweroff {
But grub-entries
does print the following:
[] Artix, kernel vmlinuz-linux version .-artix-.
[] Artix, kernel vmlinuz-linux-xanmod-anbox version unknown_version.
[] Artix, kernel vmlinuz-linux-pf version .-pf.
[] Artix, kernel vmlinuz-linux-pf-custom version .-pf-longcmdline-custom.
[] Artix, kernel vmlinuz-linux-pf-mt-custom version ..-pf-longcmdline-mt-custom.
[EFI] Windows boot manager
[EFI] GRUB Filemanager
[EFI] Clover boot loader
[EFI] Artix GRUB
[EFI] PLoP-Kexec Boot Manager
[EFI] memtes+
[EFI] syslinux
[EFI] Default "/EFI/boot/bootx.efi"
[other] PLoP Boot Manager
[other] PLoP Boot Manager
[other] PLoP-Kexec Boot Manager
[other] memtes+
Artix Linux
Windows Boot Manager (on /dev/sda)
UEFI Firmware Settings
Bootable Floppy Image: FreeDos_._Floppy
menuentry
Alpine Netboot
Arch Linux Netboot
Reboot
Poweroff
Ommiting numbers, which is not correct.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.