Добавлено отмотирование раздела из /media

master
root 15 years ago
parent 721e42ccce
commit a96bf0920d

@ -1,5 +1,8 @@
CHANGE LOG
1.2.7
* Добавлено отмонтирование раздела для установки если он подключен к /media.
1.2.6
* Добавлена утилита cl-unmask для размаскировки пакетов.
* Исправлен порядок сборки, для корректной установки модуля aufs2.

@ -22,7 +22,7 @@ use Time::Local;
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#------------------------------------------------------------------------------
my %data; #объявим хэш переменных
$data{"calcver"} = "1.2.6";
$data{"calcver"} = "1.2.7";
#Определим путь к программе
if(!getpath()){exit;};
@ -2849,6 +2849,22 @@ sub checkready{
printmes(gettext('Perform pre-install checkups')."\n");
}
#----------------------------------------------------------------------
# Отмонтируем раздел для устаноки если он примонтирован к /media
#----------------------------------------------------------------------
if(`$data{path} mount | grep "$data{rootinstall} on /media"`
&& `$data{path} mount | grep -c "$data{rootinstall} on "` == 1 ){
printmes(' '.gettext('Unmounting volume'));
printmes(" $data{rootinstall} ");
printmes(gettext('from'));
printmes( " /media...");
if( system("umount $data{rootinstall} &>/dev/null") ){
printmes(" ".gettext('error')."\n");
}
else {
printmes(" ".gettext('done')."\n");
}
}
#----------------------------------------------------------------------
# Проверим, используется ли раздел для установки
#----------------------------------------------------------------------
@ -5189,7 +5205,7 @@ sub createiso{
if(defined $data{arg}{rebuild} &&
($data{scratch} ne "on" || $data{load} ne "ram" || !-e "/mnt/flash")){
printmes(gettext('Error')."! ");
printmes(gettext('The computer must be load in to the flash from Scratch mode')); printmes(".\n");
printmes(gettext('The computer must be load from the flash in Scratch mode')); printmes(".\n");
return "";
}

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: support.ru\n"
"POT-Creation-Date: 2009-09-02 11:06+0400\n"
"POT-Creation-Date: 2009-09-16 11:25+0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -254,7 +254,7 @@ msgid "Error"
msgstr "Ошибка"
msgid "Error patching from"
msgstr ""
msgstr "Ошибка наложения патча из"
msgid "Execute"
msgstr "Выполним"
@ -428,7 +428,7 @@ msgid "Mount"
msgstr "Подмонтируем"
msgid "Mount Scratch system"
msgstr ""
msgstr "Подмонтируем Scratch систему"
msgid "Mounted disks"
msgstr "Монтируемые диски"
@ -467,7 +467,7 @@ msgid "No updates available"
msgstr "Нет доступных обновлений"
msgid "Not defined variable"
msgstr ""
msgstr "Переменная на определена"
msgid "OPTION"
msgstr "КЛЮЧ"
@ -601,7 +601,7 @@ msgid "Save kernel config"
msgstr "Сохраним настройки ядра"
msgid "Scratch may be install only to hard drive"
msgstr ""
msgstr "Scratch может быть установлен только на жесткий диск"
msgid "Screen resolution"
msgstr "Разрешение экрана"
@ -631,7 +631,7 @@ msgid "Swap disk"
msgstr "Диск подкачки"
msgid "Sync file systems"
msgstr ""
msgstr "Синхронизируем файловые системы"
msgid "System building"
msgstr "Сборка системы"
@ -645,6 +645,9 @@ msgstr "Система начнет установку через"
msgid "The archive with image of system is not found"
msgstr "Не найден архив с образом системы"
msgid "The computer must be load from the flash in Scratch mode"
msgstr "Компьютер должен быть загружен с flash диска в режиме Scratch"
msgid "The computer must be load in to the flash from Scratch mode"
msgstr ""
@ -713,7 +716,7 @@ msgid "Try"
msgstr "Попробуйте"
msgid "Umount"
msgstr ""
msgstr "Отмонтируем"
msgid "Umount chroot-disk"
msgstr "Отмонтируем chroot-диск"
@ -725,7 +728,7 @@ msgid "Uninstall packages"
msgstr "Деинсталлируем пакеты"
msgid "Unmount Scratch system"
msgstr ""
msgstr "Отмонтируем Scratch систему"
msgid "Unmount installed system volume"
msgstr "Отмонтируем раздел с установленной системой"
@ -733,6 +736,9 @@ msgstr "Отмонтируем раздел с установленной сис
msgid "Unmounting new volume"
msgstr "Отмонтируем новый раздел"
msgid "Unmounting volume"
msgstr "Отмонтируем раздел"
msgid "Unpack"
msgstr "Распакуем"
@ -911,6 +917,18 @@ msgstr "для вывода всех переменных"
msgid "for more information"
msgstr "для получения более подробного описания"
msgid "from"
msgstr "из"
msgid "from directory"
msgstr "из директории"
msgid "from media"
msgstr ""
msgid "installation for assembling"
msgstr "установка для сборки"
msgid "installation for scratch builder"
msgstr "установка для scratch сборки"
@ -978,7 +996,7 @@ msgid "prepare system for building"
msgstr "подготовить систему к сборке"
msgid "regenerate squashfs image on flash"
msgstr ""
msgstr "пересобрать squashfs образ на flash диске"
msgid "scratch"
msgstr ""

Loading…
Cancel
Save