diff --git a/install/calculate b/install/calculate index f029f5e..0341305 100755 --- a/install/calculate +++ b/install/calculate @@ -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 </dev/null\n". + #chroot $data{'chroot'} + if(system "$data{path} /sbin/grub --device-map=$data{'chroot'}/boot/grub/device.map --batch </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"`;