From: Michal Sojka Date: Fri, 11 Jun 2021 10:42:30 +0000 (+0200) Subject: Die in case of multiple initrds for the Linux kernel X-Git-Tag: 20211022~6^2~5 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/novaboot.git/commitdiff_plain/f4d7d11351ca025f054c411272022715e58098c4 Die in case of multiple initrds for the Linux kernel --- 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) {