Skip to content

Commit

Permalink
install: use console.cfg rather than 30_console.cfg
Browse files Browse the repository at this point in the history
In coreos/fedora-coreos-tracker#1671
we decided to use a non-static grub file for console configuration
named console.cfg.
  • Loading branch information
dustymabe committed Feb 21, 2024
1 parent 302a97e commit beba514
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ nav_order: 8
Major changes:

- Add Fedora 41 signing key; drop Fedora 38 signing key
- Switch alternative grub console config location to grub2/console.cfg

Minor changes:

Expand Down
4 changes: 2 additions & 2 deletions src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,8 @@ fn write_console(mountpoint: &Path, platform: Option<&str>, consoles: &[Console]

// set grub commands
if grub_commands != metal_spec.grub_commands {
// prefer the new grub2/30_console.cfg, but fallback to grub2/grub.cfg
let mut name = "grub2/30_console.cfg";
// prefer the new grub2/console.cfg, but fallback to grub2/grub.cfg
let mut name = "grub2/console.cfg";
let mut path = mountpoint.join(name);
if !path.exists() {
name = "grub2/grub.cfg";
Expand Down

0 comments on commit beba514

Please sign in to comment.