Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shim-systemd: Don't hardcode vendor name #258

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/bootloaders/shim-systemd.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ static bool shim_systemd_install_fallback_bootloader(__cbm_unused__ const BootMa
static bool shim_systemd_install(const BootManager *manager)
{
char varname[9];
const char *prefix = NULL;
prefix = boot_manager_get_vendor_prefix((BootManager *)manager);

if (!make_layout(manager)) {
LOG_FATAL("Cannot create layout");
Expand All @@ -282,7 +284,7 @@ static bool shim_systemd_install(const BootManager *manager)
if (!config.has_boot_rec && boot_manager_is_update_efi_vars((BootManager *)manager)) {
if (bootvar_create(BOOT_DIRECTORY, config.shim_dst_esp, varname, 9)) {
LOG_ERROR("Cannot create EFI variable (boot entry)");
LOG_ERROR("Please manually update your bios to add a boot entry for Clear Linux");
LOG_ERROR("Please manually update your bios to add a boot entry for %s", prefix);
}
}
} else {
Expand Down