enhance for fix bug 4466: ubuntu 14.10 genimage for netboot results in an unbootable image
This commit is contained in:
parent
f6fec4ed6d
commit
af5301faab
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user