fix bug 4410: Command genimage failed on Ubuntu 14.04.1 ppc64el with kernelver attribute

This commit is contained in:
zhaoertao 2014-11-21 02:24:36 -05:00
parent 3f59552d0c
commit c65b55b79d

View File

@ -477,7 +477,7 @@ unless ($onlyinitrd) {
$rc = system("$aptgetcmd_update");
if ($kernelimage) {
if ($kernelver) {
$kernelimage = "linux-image-".$kernelver."-generic";
$kernelimage = "linux-image-".$kernelver;
}
my $aptgetcmd_install = $aptgetcmd . "&&". $aptgetcmdby. " install --no-install-recommends ".$kernelimage;
$rc = system("$aptgetcmd_install");