From 36f1179d8907b75fcc992423fdd1104014e80924 Mon Sep 17 00:00:00 2001 From: solisinvictum <94938946+solisinvictum@users.noreply.github.com> Date: Tue, 20 Dec 2022 19:12:27 +0100 Subject: [PATCH] Wich Version this ISO have, running on UEFI or BIOS? (#12) with these changes, it is clear to the user which version he is currently using, and on which platform GRUB has started. --- archiso/grub/grub.cfg | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/archiso/grub/grub.cfg b/archiso/grub/grub.cfg index 23bad7a..dc210bf 100644 --- a/archiso/grub/grub.cfg +++ b/archiso/grub/grub.cfg @@ -1,3 +1,13 @@ +# Defining the Version of the ISO. This line could be easy changed by a Script wich do that automatic before creating ISO self. +# Default "GIT", because if somebody outside from the DEVs create a ISO, this ISO wouldnt have a specific Version number. +CACHYOS_VERSION="GIT" + +if [ "${grub_platform}" == "efi" ]; then + bios_or_uefi="(UEFI)!" + else + bios_or_uefi="(BIOS)!" +fi + # Load partition table and file system modules insmod part_gpt insmod part_msdos @@ -28,8 +38,15 @@ default=cachyos timeout=10 timeout_style=menu -# Menu entries +# Welcome Text +menuentry "Welcome to CachyOS $CACHYOS_VERSION Live ISO $bios_or_uefi" { +insmod ext2 +} +menuentry "----------------------------------------------------" { +insmod ext2 +} +# Menu entries menuentry "CachyOS" --class arch --class gnu-linux --class gnu --class os --id 'cachyos' { set gfxpayload=keep search --no-floppy --set=root --label %ARCHISO_LABEL%