enhance for fix bug 4466: ubuntu 14.10 genimage for netboot results in an unbootable image

This commit is contained in:
ertaozh 2015-01-07 00:05:54 -05:00
parent f6fec4ed6d
commit af5301faab

View File

@ -382,15 +382,11 @@ unless ($onlyinitrd) {
# The section below is used to install kernel base and extra#
#############################################################
if ($kernelimage) {
my $kernelextraimage = undef;
if ($kernelver) {
$kernelimage = "linux-image-".$kernelver;
$kernelextraimage = "linux-image-extra-".$kernelver;
$kernelimage = "linux-image-$kernelver linux-image-extra-$kernelver linux-firmware";
}
my $aptgetcmd_install = $aptgetcmd . "&&". $aptgetcmdby. " install --no-install-recommends ".$kernelimage;
$rc = system("$aptgetcmd_install");
$aptgetcmd_install = $aptgetcmd . "&&". $aptgetcmdby. " install --no-install-recommends ". $kernelextraimage;
$rc = system("$aptgetcmd_install");
}
}