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

master
atratsevskiy 15 years ago
parent 897412f6ee
commit f197cd6030

@ -897,6 +897,8 @@ sub checksystem{
$data{location} = "ram";
}
$data{load} = "ram";
}elsif(`mount | grep /mnt/scratch`){
$data{load} = "scratch";
}
#----------------------------------------------------------------------
@ -5109,13 +5111,13 @@ sub umount_build_dirs{
#
#------------------------------------------------------------------------------
sub createiso{
if(number_ver($data{os}) <= 80100){
printmes(gettext('Error')."! ");
printmes(gettext('The system should be not below version')); printmes(" 8.2.\n");
return "";
}
# if(number_ver($data{os}) <= 80100){
# printmes(gettext('Error')."! ");
# printmes(gettext('The system should be not below version')); printmes(" 8.2.\n");
# return "";
# }
if(!$data{linux} || $data{linux} =~m/iso$/){
if((!$data{linux} || $data{linux} =~m/iso$/) && $data{load} ne 'scratch'){
printmes(gettext('Error')."! ");
printmes(gettext('The archive with image of system is not found')); printmes(".\n");
return "";

@ -85,7 +85,7 @@ umountres() {
}
if ! [ `mount | grep /mnt/scratch2` ]
if ! [ `mount | grep /mnt/scratch` ]
then
echo "This program only works in the system, installed by Calculate with the option '--scratch'."
exit;

Loading…
Cancel
Save