LinuxForum.Fans
Тема

создание своего дистрибутива

Автор: hemmul_seto 3 сообщений 2837 просмотров
#317589

При изготовлении своего дистрибутива с помощью simple-cdd не могу добиться исключения некоторых пунктов инсталляции (и присвоения им дефолтных значений), далее не получается после инсталляции запустить свой скрипт, и сделать так чтобы в определенных папках лежали мои файлы. В общем по порядку.

Создаю рабочую папку, в которой создаю подпапку profiles, в подпапку profiles кладу файлы персонального профиля : simpleWeb.downloads , simpleWeb.packages, simpleWeb.preseed, simpleWeb.postinst, simpleWeb.udebs, рыбу этих файлов беру из
/usr/share/simple-cdd/profiles . Так же в папку profiles складываю файлы default.downloads , default.packages, default.preseed, default.udebs и настраиваю под себя default.preseed.


мой вариант simpleWeb.postinst ( почему то команды не выполняются ):
apt-cdrom add
dpkg-reconfigure конфигурируемый пакет



мой вариант default.preseed
Я заранее устанавливаю часовой пояс, раскладки клавиатуры, ну или считаю что устанавливаю , отмечено #( !!!!!!!!!!! )

text

# don't install any tasks
tasksel   tasksel/first multiselect 
#tasksel   tasksel/first multiselect Desktop environment
#tasksel  tasksel/first multiselect Web server, Mail server, DNS server

###### Time zone setup.

# Controls whether or not the hardware clock is set to UTC. d-i clock-setup/utc boolean true

# Many countries have only one time zone. If you told the installer you're # in one of those countries, you can choose its standard time zone via this # question. #base-config tzconfig/choose_country_zone_single boolean true d-i time/zone select RU/Moscow #( !!!!!!!!!!! )

### keyboard configuration # don't mess with the keymap #console-common console-data/keymap/policy select Don't touch keymap #console-data console-data/keymap/policy select Don't touch keymap

# keyboard layouts console-data console-data/keymap/qwerty/layout select US american #console-data console-data/keymap/family select qwerty #( !!!!!!!!!!! ) console-common console-data/keymap/family select qwerty #( !!!!!!!!!!! )

#### Network configuration.

d-i netcfg/choose_interface select auto d-i netcfg/get_hostname string unassigned

### Partitioning.

d-i partman-auto/method string regular

d-i partman-auto/choose_recipe select All files in one partition (recommended for new users) d-i partman/choose_partition select Finish partitioning and write changes to disk

#### Boot loader installation.

d-i grub-installer/only_debian boolean true d-i grub-installer/with_other_os boolean true

### skip some annoying installation status notes # Avoid that last message about the install being complete. d-i finish-install/reboot_in_progress note # Avoid the introductory message. base-config base-config/intro note # Avoid the final message. base-config base-config/login note

#d-i popularity-contest/participate boolean false

### simple-cdd commands

# you may add to the following commands by including a ";" followed by your # shell commands.

# loads the simple-cdd-profiles udeb to which asks for which profiles to use, # load the debconf preseeding and queue packages for installation. d-i preseed/early_command string anna-install simple-cdd-profiles

и так, после заполнения файлов персонального профиля я набираю команду
build-simple-cdd --profiles simpleWeb
и в результате получаю образ.

при инсталляции свежеиспеченной сборки получаю следующие пункты установки :

1. приглашение к установке ( 1 install 2 graphic install )
2. выбор языка //(вроде я установил этот и следующий пункт по
3. выбор местонахождения // умолчанию в default.preseed )
4. выбор раскладки клавиатуры //
5. !! Выбор профиля
6. Выбор имени домена // этот пункт из в default.preseed я исключил, откуда он взялся
7. пароль суперпользователя
8. имя пользователя // как сделать это значение по умолчанию
9. имя учетной записи // как сделать это значение по умолчанию
10. пароль пользователя
11. Запись изменений на диск
12. настройка keyboard-configuration : настройка переключения раскладки
13. cyrillic on console : способ переключения между lat и cyrillic раскладками
14. cyrillic on console : способ временного переключения между lat и cyrillic
15. настройка apt выбор зеркала архива
16. учавствовать в опросе популярности пакетов


мне же хотелось бы что бы пункты установки состояли из :

1. приглашение к установке ( 1 install 2 graphic install )
5. !! Выбор профиля
Выбор имени хоста
7. пароль суперпользователя
10. пароль пользователя
11. Запись изменений на диск


Как этого добиться ?

#319892

Кажется

"hemmul.seto⇓" написал:
мой вариант  default.preseed
Я заранее устанавливаю часовой пояс, раскладки клавиатуры, ну или считаю что устанавливаю , отмечено #(  !!!!!!!!!!! )

Я когда-то, где-то читал на форумах, что приоритетными будут установки клавиатуры в debian installer (d-i), то есть default.preseed не сработает (в случае с клавиатурой) и для того что бы изменить, нужно ковырять либо d-i, либо что-то ещё.

#320064

проблема решена, практически.
Не нашел только как по умолчанию задать раскладку клавиатуры.


создание своего дистрибутива
Создаем рабочую папку, в которой создаем подпапку profiles, в подпапку profiles кладем следующие файлы персонального профиля :
simpleWeb.downloads ,
simpleWeb.packages,
simpleWeb.preseed,
simpleWeb.postinst,
simpleWeb.udebs, рыбу этих файлов можно скачать в /usr/share/simple-cdd/profiles . Так же в папку profiles складываем файлы :
default.downloads ,
default.packages,
default.preseed,
default.udebs – это файлы специального профиля, файл default.preseed загружается сразу после монтирования инсталляционного диска, другие xxx.preseed загружаются когда проинсталлируется simple-cdd-installed .udeb .

ххх.downloads - содержится список скачиваемых пакетов,
ххх.packages - содержится список устанавливаемых пакетов,
ххх.preseed - содержатся команды для debian installer,
xxx.udebs - не понял что здесь и для чего
xxx.postinst - разрешить всем запуск/поиск, сюда кладутся скрипты которые запускаются после инсталляции
xxx.conf - здесь кажется?????? находятся данные необходимые при генерации образа , например переменные окружения

и так, после заполнения файлов профиля я набираю команду
build-simple-cdd --local-packages ./my_files --profiles simpleWeb --keyboard ru --locale ru_RU

т


мой вариант default.preseed
создавался с учетом :
http://www.debian.org/releases/stable/amd64/apbs04.html.ru
http://www.debian.org/releases/stable/amd64/apbs03.html.ru

text

# don't install any tasks. Выбор усранавливаемого набора пакетов tasksel tasksel/first multiselect

# setting language and country according to the locale. Указываем локаль d-i debian-installer/locale string ru_RU #d-i debian-installer/language string ru #d-i debian-installer/country string RU d-i debian-installer/locale string ru_RU d-i debian-installer/language string ru d-i debian-installer/country string RU d-i debian-installer/keymap string ru d-i debian-installer/locale select ru_RU d-i debconf/language string ru d-i localechooser/languagelist select ru

###### Time zone setup.

d-i clock-setup/utc boolean true d-i time/zone string Europe/Moscow d-i clock-setup/ntp boolean true d-i clock-setup/ntp-server string ntp.example.com

### keyboard configuration d-i console-tools/archs skip-config d-i console-keymaps-at/keymap select ru d-i keyboard-configuration/xkb-keymap select ru

###### Account setup. d-i passwd/user-fullname string serg d-i passwd/username string serg

#### Network configuration.

# Disable network configuration entirely. #d-i netcfg/enable boolean false # netcfg will choose an interface that has link if possible. This makes it # skip displaying a list if there is more than one interface. d-i netcfg/choose_interface select auto # preconfiguration to work with or without a server dhcp. #d-i netcfg/disable_dhcp boolean true #d-i netcfg/dhcp_failed note #d-i netcfg/dhcp_options select Configure network manually

# Note that any hostname and domain names assigned from dhcp take # precidence over values set here. However, setting the values still # prevents the questions from being shown even if values come from dhcp. #d-i netcfg/get_hostname string unassigned d-i netcfg/get_domain string incotex-glonass.local # Disable that annoying WEP key dialog. #d-i netcfg/wireless_wep string

### Partitioning.

d-i partman-auto/method string regular d-i partman-auto/choose_recipe select All files in one partition (recommended for new users) d-i partman/choose_partition select Finish partitioning and write changes to disk

#### Boot loader installation. d-i grub-installer/only_debian boolean true d-i grub-installer/with_other_os boolean true

###### Apt setup. d-i apt-setup/non-free boolean true d-i apt-setup/contrib boolean true d-i apt-setup/use_mirror boolean false

### skip some annoying installation status notes

# Avoid that last message about the install being complete. # Не показывать последнее сообщение о том, что установка завершена. d-i finish-install/reboot_in_progress note # Avoid the introductory message. base-config base-config/intro note # Avoid the final message. base-config base-config/login note

# Некоторые версии программы установки могут отсылать отчёт # об установленных и используемых пакетах. По умолчанию данная # возможность выключена. d-i popularity-contest/participate boolean false

### simple-cdd commands

# you may add to the following commands by including a ";" followed by your # shell commands.

# loads the simple-cdd-profiles udeb to which asks for which profiles to use, # load the debconf preseeding and queue packages for installation. d-i preseed/early_command string anna-install simple-cdd-profiles

Войдите или зарегистрируйтесь, чтобы ответить.