git-svn-id: http://svn.calculate.ru/calculate/trunk@2083 c91db197-33c1-4113-bf15-f8a5c547ca64

master
atratsevskiy 15 years ago
parent 5617053098
commit d9d7c80378

@ -3315,7 +3315,8 @@ sub loader{
printmes(" ".gettext('Change boot record')); printmes("...");
if($data{type} ne "flash"){
if(system "$data{path} chroot $data{'chroot'} /sbin/grub --device-map=/boot/grub/device.map --batch <<EOF &>/dev/null\n".
#chroot $data{'chroot'}
if(system "$data{path} /sbin/grub --device-map=$data{'chroot'}/boot/grub/device.map --batch <<EOF &>/dev/null\n".
"root ($data{grubinstall})\n".
"setup (hd0)\n".
"quit\n".
@ -3617,7 +3618,7 @@ sub profile{
#сохраним обработанный файл в директории установки
my $fname = $allocation; $fname=~m/^(.*\/)([^\/]+)$/;
if(substr($2,0,1) eq "~" && $data{pass} eq 'install' && $data{calculate} eq 'CLS'){next;}
if(substr($2,0,1) eq "~" && $data{pass} eq 'install' && $data{scratch}){next;}
if(substr($2,0,1) eq "^"){
#допишем в конец файла без значка
@ -3658,7 +3659,10 @@ sub profile{
system "$data{path} chmod 755 $allocation";
} }
}elsif(`$data{path} file "$_" | grep empty`){
`$data{path} rm -f "$allocation"`;
system "$data{path} rm -f \"$allocation\"";
if($data{scratch} && $data{pass} eq "install"){
system "$data{path} touch \".wh.$allocation\"";
}
}else{
#перенесем без обработки бинарный файл
`$data{path} cp -a "$_" "$allocation"`;

Loading…
Cancel
Save