Skip to content

Commit

Permalink
mxgrub: Fix check for -rc kernel
Browse files Browse the repository at this point in the history
Relax the pattern in check_grub_menu_and_boot_dir so that rc-kernel
entries ("mariux-5.4.0-rc2-295") are matched as well.
  • Loading branch information
donald committed Oct 7, 2019
1 parent ce889c4 commit 9749142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxgrub/mxgrub
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ sub check_grub_menu_and_boot_dir {
my $inconsistent = 1;

my @kernels_menu = grep {/menuentry.+?mariux-\d/} split m/\n/, read_file('/boot/grub/grub.cfg');
@kernels_menu = map {/["']mariux-[\d\.]+-(\d+)['"]/; "mariux.$1"} @kernels_menu;
@kernels_menu = map {/["']mariux-.+-(\d+)['"]/; "mariux.$1"} @kernels_menu;

my @tmp = grep {/mariux\.\d+/} scandir('/boot');
my %installed;
Expand Down

0 comments on commit 9749142

Please sign in to comment.