|
|
|
@ -3325,6 +3325,29 @@ sub extract{
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
printmes(gettext('done').".\n");
|
|
|
|
|
|
|
|
|
|
printmes(" ".gettext('Create symlink for kernel and initrd')); printmes("... ");
|
|
|
|
|
my $initramfile=`ls $data{mount}$data{scratch_ws}/boot/initr* 2>/dev/null`;
|
|
|
|
|
if($initramfile) {
|
|
|
|
|
$initramfile=`basename $initramfile`;
|
|
|
|
|
chomp($initramfile);
|
|
|
|
|
if(system("$data{path} ln -sf $initramfile $data{mount}$data{scratch_ws}/boot/initrd")){
|
|
|
|
|
printmes("\n\n".gettext('Error')."! ");
|
|
|
|
|
beep();
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
my $vmlinuzfile=`ls $data{mount}$data{scratch_ws}/boot/vmlinuz* 2>/dev/null`;
|
|
|
|
|
if($vmlinuzfile) {
|
|
|
|
|
$vmlinuzfile=`basename $vmlinuzfile`;
|
|
|
|
|
chomp($vmlinuzfile);
|
|
|
|
|
if(system("$data{path} ln -sf $vmlinuzfile $data{mount}$data{scratch_ws}/boot/vmlinuz &>/dev/null")){
|
|
|
|
|
printmes("\n\n".gettext('Error')."! ");
|
|
|
|
|
beep();
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
printmes(gettext('done').".\n");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|