From f4d7d11351ca025f054c411272022715e58098c4 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 11 Jun 2021 12:42:30 +0200 Subject: [PATCH] Die in case of multiple initrds for the Linux kernel --- novaboot | 1 + 1 file changed, 1 insertion(+) diff --git a/novaboot b/novaboot index 1fdfd52..0c5d539 100755 --- a/novaboot +++ b/novaboot @@ -584,6 +584,7 @@ sub generate_grub2_config($$$$;$$) my $module_load_method = "module"; if ($boot_method eq "linux") { $module_load_method = "initrd"; + die('Too many "load" lines for Linux kernel') if (scalar(@$modules_ref) > 2); } foreach (@$modules_ref) { if ($first) { -- 2.39.2