Set default kernel/initramfs vars in the generic grub.cfg (#408)

You can still override them via the usual bootargs.cfg in your distro,
but it would be good to have the defaults already int he file in case we
cant load the bootargs file or its missing, it has sane defaults

Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
Itxaka 2023-09-07 13:00:55 +02:00 committed by GitHub
parent faa3b574a5
commit 14f5244eae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,3 @@
name: "grub-config"
category: "static"
version: "0.6"
version: "0.7"

View File

@ -1,5 +1,10 @@
set timeout=10
# set default values for kernel, initramfs
# Other files can still override this
set kernel=/boot/vmlinuz
set initramfs=/boot/initrd
# Load custom env file
set env_file="/grubenv"
search --no-floppy --file --set=env_blk "${env_file}"