From 14f5244eaeae67401446b0660f1444ccc22ca25a Mon Sep 17 00:00:00 2001 From: Itxaka Date: Thu, 7 Sep 2023 13:00:55 +0200 Subject: [PATCH] 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 --- packages/static/grub-config/definition.yaml | 2 +- packages/static/grub-config/files/grub.cfg | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/static/grub-config/definition.yaml b/packages/static/grub-config/definition.yaml index c14849f..fab5412 100644 --- a/packages/static/grub-config/definition.yaml +++ b/packages/static/grub-config/definition.yaml @@ -1,3 +1,3 @@ name: "grub-config" category: "static" -version: "0.6" +version: "0.7" diff --git a/packages/static/grub-config/files/grub.cfg b/packages/static/grub-config/files/grub.cfg index d410dac..fc8c8ee 100644 --- a/packages/static/grub-config/files/grub.cfg +++ b/packages/static/grub-config/files/grub.cfg @@ -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}"