debconf-get-selections에서 어떤 값을 미리 설정하면 안 됩니까?

debconf-get-selections에서 어떤 값을 미리 설정하면 안 됩니까?

내 시스템의 현재 구성에 대해 내가 선택한 데비안 설치 선택 사항을 새 시스템 설치에 복제하고 싶습니다.

데비안은 기본적으로 설치 프로그램이 묻는 질문에 대한 답변이 포함된 "미리 구성"("미리 설정"이라고도 함) 파일을 통해 미리 구성할 수 있습니다.

이것문서기존 데비안 설치에서 사전 구성 파일을 만드는 방법 중 하나는 다음과 같습니다:

... debconf-get-selectionsdebconf-utils 패키지를 사용하여 debconf 데이터베이스와 설치 프로그램의 cdebconf 데이터베이스를 단일 파일로 덤프합니다:

$ debconf-get-selections --installer > file
$ debconf-get-selections >> file

그러나 즉시 다음과 같이 덧붙였습니다.

그러나 이런 방식으로 생성된 파일에는 미리 설정하면 안 되는 일부 항목이 포함되어 있습니다.

문서에는 프로비저닝해서는 안 되는 항목이 무엇인지 명시되어 있지 않습니다.

누군가 이것에 대해 자세히 설명해 주시겠습니까?


d-i예를 들어, 아래에는 위의 두 명령에서 얻은 출력의 두 번째 필드가 포함되어 있습니다. 여기서는 시작하는 줄 과 주석 만 유지했으며 때로는 간결성을 위해 잘렸습니다. ( d-i다음으로 시작하는 구성 줄만 유지하는 이유는사전 구성 파일 예데비안에서 제공하는 경우 해당 줄만 나타납니다. )

# Check the integrity of another CD-ROM?
cdrom-checker/nextcd

# Web server started, but network not running
save-logs/no_network

# for internal use only
debian-installer/consoledisplay

debian-installer/shell-plugin

# Country, territory or area:
# Choices: Antigua and Barbuda, Australia, Botswana, Canada, ...
localechooser/shortlist

# for internal use; can be preseeded
preseed/include_command

# Country of origin for the keyboard:
# Choices: 
keyboard-configuration/layout

# Choices: Canada, Mexico, Saint Pierre and Miquelon, United ...
localechooser/countrylist/North_America

# Choices: Greece, Cyprus, other
localechooser/shortlist/el

# Keyboard layout:
# Choices: 
keyboard-configuration/variant

# Choices: Algeria, Angola, Benin, Botswana, Burkina Faso, Bu...
localechooser/countrylist/Africa

# Choices: Finland, Sweden, other
localechooser/shortlist/sv

# Keep default keyboard options ()?
keyboard-configuration/unsupported_options

# Choices: Cyprus, Turkey, other
localechooser/shortlist/tr

# Interactive shell
di-utils-shell/do-shell

# for internal use only
# Choices: stable, testing, unstable
cdrom/suite

# Choose an installation step:
# Choices: 
debian-installer/missing-provide

# Check CD-ROM integrity?
cdrom-checker/start

# Failed to retrieve the preconfiguration file
preseed/retrieve_error

# Directory in which to save debug logs:
save-logs/directory

# for internal use only
debconf/showold

# Failed to open checksum file
cdrom-checker/md5file_failed

# Choices: Andorra, Spain, France, Italy, other
localechooser/shortlist/ca

# Write the changes to the storage devices and configure RAID...
partman-md/confirm_nooverwrite

# PCMCIA resource range options:
hw-detect/pcmcia_resources

# Failed to mount the floppy
save-logs/floppy_mount_failed

# for internal use only
debconf/language

# Choices: China, Singapore, Taiwan, Hong Kong, other
localechooser/shortlist/zh_TW

# Dummy template for preseeding unavailable questions
debian-installer/dummy

# Additional parameters for module :
hw-detect/retry_params

# Incorrect CD-ROM detected
cdrom-detect/wrong-cd

# for internal use; can be preseeded
cdrom-detect/eject

# Choices: Argentina, Bolivia, Chile, Colombia, Costa Rica, E...
localechooser/shortlist/es

# for internal use; can be preseeded
preseed/run

# Write the changes to disks and configure LVM?
partman-lvm/confirm_nooverwrite

# Cannot save logs
save-logs/bad_directory

# Choices: Belgium, Canada, France, Luxembourg, Switzerland, ...
localechooser/shortlist/fr

# Insufficient memory
lowmem/insufficient

# for internal use
keyboard-configuration/optionscode

# Choices: China, Taiwan, Singapore, Hong Kong, other
localechooser/shortlist/zh_CN

# Load missing firmware from removable media?
hw-detect/load_firmware

# Choices: Italy, Switzerland, other
localechooser/shortlist/it

# Choices: Antarctica
localechooser/countrylist/Antarctica

# Choose the next step in the install process:
# Choices: Choose language, Configure the speech synthesizer ...
debian-installer/main-menu

# Failed to load installer component
anna/install_failed

# Choices: Russian Federation, Ukraine, other
localechooser/shortlist/ru

# for internal use
keyboard-configuration/modelcode

# Entering low memory mode
lowmem/low

# Choices: Jordan, United Arab Emirates, Bahrain, Algeria, Sy...
localechooser/shortlist/ar

# Keep current keyboard options in the configuration file?
keyboard-configuration/unsupported_config_options

# Choices: Antigua and Barbuda, Australia, Botswana, Canada, ...
localechooser/shortlist/en

# Method for toggling between national and Latin mode:
# Choices: Caps Lock, Right Alt (AltGr), Right Control, Right...
keyboard-configuration/toggle

# for internal use only
anna/retriever

# Choices: Curaçao
localechooser/countrylist/other

# Choices: Albania, Andorra, Armenia, Austria, Azerbaijan, Be...
localechooser/countrylist/Europe

# locale
localechooser/help/locale

# Load CD-ROM drivers from removable media?
cdrom-detect/load_media

# for internal use; can be preseeded
debian-installer/framebuffer

# for internal use
espeakup/voice

# for internal use; can be preseeded
preseed/include

# Error reading Release file
cdrom-detect/no-release

# Ignore questions with a priority less than:
# Choices: critical, high, medium, low
debconf/priority

# Key to function as AltGr:
# Choices: The default for the keyboard layout, No AltGr key,...
keyboard-configuration/altgr

# CD-ROM detected
cdrom-detect/success

# Choices: Bouvet Island, Falkland Islands (Malvinas), Saint ...
localechooser/countrylist/Atlantic_Ocean

# Continue the install without loading kernel modules?
anna/no_kernel_modules

# for internal use; can be preseeded
debian-installer/exit/poweroff

# Choices: Bangladesh, India, other
localechooser/shortlist/bn

# for internal use; can be preseeded
preseed/include/checksum

# Integrity test failed
cdrom-checker/mismatch

# Load missing drivers from removable media?
hw-detect/load_media

# Keep default keyboard layout ()?
keyboard-configuration/unsupported_layout

# Start PC card services?
hw-detect/start_pcmcia

# for internal use; can be preseeded
debian-installer/add-kernel-opts

# for internal use; can be preseeded
mouse/protocol

# for internal use; can be preseeded
mouse/left

# for internal use
keyboard-configuration/layoutcode

# for internal use
keyboard-configuration/store_defaults_in_debconf_db

# Choices: Brazil, Portugal, other
localechooser/shortlist/pt

# for internal use; can be preseeded
preseed/early_command

# for internal use only
debian-installer/exit/always_halt

# Choices: Africa, Antarctica, Asia, Atlantic Ocean, Caribbea...
localechooser/continentlist

# Insert Debian boot CD-ROM
cdrom-checker/firstcd

# How should the debug logs be saved or transferred?
# Choices: floppy, web, mounted file system
save-logs/menu

# for internal use; can be preseeded
rescue/enable

# for internal use only
cdrom-detect/cdrom_fs

# Insert formatted floppy in drive
save-logs/insert_floppy

# Translations temporarily not available
localechooser/translation/none-yet

# Keymap to use:
# Choices: American English, Albanian, Arabic, Asturian, Bang...
keyboard-configuration/xkb-keymap

# for internal use; can be preseeded
mouse/device

# for internal use only
cdrom-detect/hybrid

# for internal use only
debconf/translations-dropped

# Country to base default locale settings on:
# Choices: Antigua and Barbuda${!TAB}-${!TAB}en_AG, Australia...
localechooser/preferred-locale

# Choices: Spain, France, other
localechooser/shortlist/eu

# Choices: Argentina, Bolivia, Brazil, Chile, Colombia, Ecuad...
localechooser/countrylist/South_America

# Failed to mount CD-ROM
cdrom-checker/mntfailed

# Retry mounting the CD-ROM?
cdrom-detect/retry

# Choices: Serbia, Montenegro, other
localechooser/shortlist/sr

# Module needed for accessing the CD-ROM:
# Choices: 
cdrom-detect/cdrom_module

# for internal use; can be preseeded
preseed/file

# for internal use; can be preseeded
hw-detect/load-ide

# for internal use; can be preseeded
preseed/interactive

# Installation step failed
debian-installer/main-menu/item-failure

# Error while running ''
hw-detect/modprobe_error

# Choices: Pakistan, India, other
localechooser/shortlist/pa

# Use Control+Alt+Backspace to terminate the X server?
keyboard-configuration/ctrl_alt_bksp

# Choices: China, India, other
localechooser/shortlist/bo

# Language:
# Choices: C${!TAB}-${!TAB}No localization, Albanian${!TAB}-$...
localechooser/languagelist

# Installer components to load:
# Choices: 
anna/choose_modules_lowmem

# for internal use only
debian-installer/language

# for internal use
keyboard-configuration/variantcode

# Choices: Anguilla, Antigua and Barbuda, Aruba, Bahamas, Bar...
localechooser/countrylist/Caribbean

# Language selection no longer possible
localechooser/translation/no-select

# Failed to copy file from CD-ROM. Retry?
retriever/cdrom/error

# Choices: Afghanistan, Bahrain, Bangladesh, Bhutan, Brunei D...
localechooser/countrylist/Asia

# Write the changes to disk and configure encrypted volumes?
partman-crypto/confirm_nooverwrite

# for internal use; can be preseeded
debian-installer/country

# No valid Debian CD-ROM
cdrom-checker/wrongcd

# Choices: Belgium, Germany, Liechtenstein, Luxembourg, Austr...
localechooser/shortlist/de

# for internal use; can be preseeded
anna/standard_modules

# Failed to process the preconfiguration file
preseed/load_error

# for internal use; can be preseeded
preseed/file/checksum

# Device file for accessing the CD-ROM:
cdrom-detect/cdrom_device

# for internal use; can be preseeded
directfb/hw-accel

# for internal use; can be preseeded
debian-installer/allow_unauthenticated

# Continue the installation in the selected language?
localechooser/translation/warn-severe

# for internal use; can be preseeded
debian-installer/theme

# Choices: American Samoa, Australia, Cook Islands, Fiji, Fre...
localechooser/countrylist/Oceania

# Are you sure you want to exit now?
di-utils-reboot/really_reboot

# Choices: Brazil, Portugal, other
localechooser/shortlist/pt_BR

# for internal use only
debconf/frontend

# for internal use; can be preseeded
debian-installer/exit/halt

# Choices: Belize, Costa Rica, El Salvador, Guatemala, Hondur...
localechooser/countrylist/Central_America

# Keep the current keyboard layout in the configuration file?
keyboard-configuration/unsupported_config_layout

# Compose key:
# Choices: No compose key, Right Alt (AltGr), Right Control, ...
keyboard-configuration/compose

# Method for temporarily toggling between national and Latin ...
# Choices: No temporary switch, Both Logo keys, Right Alt (Al...
keyboard-configuration/switch

# Installer components to load:
# Choices: cfdisk-udeb: Manually partition a hard drive (cfdi...
anna/choose_modules

# Integrity test successful
cdrom-checker/passed

# Manually select a CD-ROM module and device?
cdrom-detect/manual_config

# Terminal plugin not available
debian-installer/terminal-plugin-unavailable

# Insert a Debian CD-ROM
cdrom-checker/askmount

# Additional locales:
# Choices: aa_DJ.UTF-8, aa_DJ, aa_ER, aa_ER@saaho, aa_ET, af_...
localechooser/supported-locales

# for internal use only
cdrom-detect/usb-hdd

# for internal use; can be preseeded
preseed/late_command

# Failed to run preseeded command
preseed/command_failed

# Modules to load:
# Choices: 
hw-detect/select_modules

# Keyboard model:
# Choices: 
keyboard-configuration/model

# Continue the installation in the selected language?
localechooser/translation/warn-light

# Choices: Aruba, Belgium, Netherlands, other
localechooser/shortlist/nl

# for internal use only
cdrom/codename

# Choices: British Indian Ocean Territory, Christmas Island, ...
localechooser/countrylist/Indian_Ocean

# for internal use; can be preseeded
preseed/boot_command

# Web server started
save-logs/httpd_running

# System locale:
# Choices: 
debian-installer/locale

# Choices: Macedonia\, Republic of, Albania, other
localechooser/shortlist/sq

# Country of origin for the keyboard:
# Choices: 
keyboard-configuration/layout

# Keymap to use:
# Choices: American English, Albanian, Arabic, Asturian, Bang...
keyboard-configuration/xkb-keymap

# Keyboard layout:
# Choices: English (US), English (US) - Cherokee, English (US...
keyboard-configuration/variant

# Keep default keyboard options ()?
keyboard-configuration/unsupported_options

# Use Control+Alt+Backspace to terminate the X server?
keyboard-configuration/ctrl_alt_bksp

# for internal use
keyboard-configuration/variantcode

# for internal use
keyboard-configuration/optionscode

# for internal use
keyboard-configuration/modelcode

# Keep current keyboard options in the configuration file?
keyboard-configuration/unsupported_config_options

# Keep the current keyboard layout in the configuration file?
keyboard-configuration/unsupported_config_layout

# Method for toggling between national and Latin mode:
# Choices: Caps Lock, Right Alt (AltGr), Right Control, Right...
keyboard-configuration/toggle

# Compose key:
# Choices: No compose key, Right Alt (AltGr), Right Control, ...
keyboard-configuration/compose

# Method for temporarily toggling between national and Latin ...
# Choices: No temporary switch, Both Logo keys, Right Alt (Al...
keyboard-configuration/switch

# Key to function as AltGr:
# Choices: The default for the keyboard layout, No AltGr key,...
keyboard-configuration/altgr

# Keep default keyboard layout ()?
keyboard-configuration/unsupported_layout

# Keyboard model:
# Choices: A4Tech KB-21, A4Tech KBS-8, A4Tech Wireless Deskto...
keyboard-configuration/model

# for internal use
keyboard-configuration/layoutcode

# for internal use
keyboard-configuration/store_defaults_in_debconf_db

답변1

짧은 답변

~에서DI 사전 설정 전용 데비안 위키 페이지:

debconf-get-selections(--installer)로 생성된 preseed.cfg를 처리하지 말고, 그 대신 값을 가져와서 샘플 미리 설정 파일을 수정하는 데 사용하세요.

이것프리셋 예데비안에서 제공하는 파일은 시작하기에 충분하지만, 동일한 위키 페이지에서 다양한 사람들이 다양한 목적으로 제공한 다른 사전 설정 파일도 많이 찾을 수 있습니다.

덜 짧은 답변

귀하가 게시한 debconf 질문 목록에서 "for inside use"라는 주석이 있고 "can bepreset"이 없는 모든 질문은 미리 설정되어서는 안 됩니다.

그러나 하드웨어 관련 질문(다른 하드웨어에서 설치를 실행하려는 경우), 일부 자동 구성 실패 또는 성공을 기록하는 문제(이는 일부 특별한 사례는 사전에 설정될 수 있지만 문제 없이 자동화된 프로세스로 답변될 수 있습니다.

debconf-get-selections의 출력에는 대부분의 사람들이 한 번도 본 적이 없고 관심을 가져서는 안 되는 자동 응답 질문이 많이 포함되어 있습니다. 시간이 지남에 따라 새로운 하드웨어, 소프트웨어, 더 나은 감지 또는 새로운 가능성이 제공되면서 이러한 자동 선택이 변경됩니다. debian-installer의 모든 개선 사항을 활용하고 시간이 지남에 따라 다른 하드웨어에서 프로비저닝 파일에 필요한 변경 사항을 최소한으로 유지하려면 자동 구성에 가능한 한 적게 노출되는 것이 중요합니다.

관련 정보