apu-bookworm.txt 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  1. #_preseed_V1
  2. #### Contents of the preconfiguration file (for bookworm)
  3. ### Localization
  4. # Preseeding only locale sets language, country and locale.
  5. d-i debian-installer/locale string en_US
  6. # The values can also be preseeded individually for greater flexibility.
  7. d-i debian-installer/language string en
  8. d-i debian-installer/country string DE
  9. d-i debian-installer/locale string en_US.UTF-8
  10. # Optionally specify additional locales to be generated.
  11. #d-i localechooser/supported-locales multiselect en_US.UTF-8, nl_NL.UTF-8
  12. # Keyboard selection.
  13. d-i keyboard-configuration/xkb-keymap select de
  14. # d-i keyboard-configuration/toggle select No toggling
  15. ### Network configuration
  16. # Disable network configuration entirely. This is useful for cdrom
  17. # installations on non-networked devices where the network questions,
  18. # warning and long timeouts are a nuisance.
  19. #d-i netcfg/enable boolean false
  20. # netcfg will choose an interface that has link if possible. This makes it
  21. # skip displaying a list if there is more than one interface.
  22. d-i netcfg/choose_interface select enp1s0
  23. # To pick a particular interface instead:
  24. #d-i netcfg/choose_interface select eth1
  25. # To set a different link detection timeout (default is 3 seconds).
  26. # Values are interpreted as seconds.
  27. #d-i netcfg/link_wait_timeout string 10
  28. # If you have a slow dhcp server and the installer times out waiting for
  29. # it, this might be useful.
  30. #d-i netcfg/dhcp_timeout string 60
  31. #d-i netcfg/dhcpv6_timeout string 60
  32. # Automatic network configuration is the default.
  33. # If you prefer to configure the network manually, uncomment this line and
  34. # the static network configuration below.
  35. #d-i netcfg/disable_autoconfig boolean true
  36. # If you want the preconfiguration file to work on systems both with and
  37. # without a dhcp server, uncomment these lines and the static network
  38. # configuration below.
  39. #d-i netcfg/dhcp_failed note
  40. #d-i netcfg/dhcp_options select Configure network manually
  41. # Static network configuration.
  42. #
  43. # IPv4 example
  44. #d-i netcfg/get_ipaddress string 192.168.1.42
  45. #d-i netcfg/get_netmask string 255.255.255.0
  46. #d-i netcfg/get_gateway string 192.168.1.1
  47. #d-i netcfg/get_nameservers string 192.168.1.1
  48. #d-i netcfg/confirm_static boolean true
  49. #
  50. # IPv6 example
  51. #d-i netcfg/get_ipaddress string fc00::2
  52. #d-i netcfg/get_netmask string ffff:ffff:ffff:ffff::
  53. #d-i netcfg/get_gateway string fc00::1
  54. #d-i netcfg/get_nameservers string fc00::1
  55. #d-i netcfg/confirm_static boolean true
  56. # Any hostname and domain names assigned from dhcp take precedence over
  57. # values set here. However, setting the values still prevents the questions
  58. # from being shown, even if values come from dhcp.
  59. #d-i netcfg/get_hostname string unassigned-hostname
  60. d-i netcfg/get_domain string in.ffho.net
  61. # If you want to force a hostname, regardless of what either the DHCP
  62. # server returns or what the reverse DNS entry for the IP is, uncomment
  63. # and adjust the following line.
  64. #d-i netcfg/hostname string somehost
  65. # Disable that annoying WEP key dialog.
  66. d-i netcfg/wireless_wep string
  67. # The wacky dhcp hostname that some ISPs use as a password of sorts.
  68. #d-i netcfg/dhcp_hostname string radish
  69. # If you want to completely disable firmware lookup (i.e. not use firmware
  70. # files or packages that might be available on installation images):
  71. #d-i hw-detect/firmware-lookup string never
  72. # If non-free firmware is needed for the network or other hardware, you can
  73. # configure the installer to always try to load it, without prompting. Or
  74. # change to false to disable asking.
  75. #d-i hw-detect/load_firmware boolean true
  76. ### Network console
  77. # Use the following settings if you wish to make use of the network-console
  78. # component for remote installation over SSH. This only makes sense if you
  79. # intend to perform the remainder of the installation manually.
  80. #d-i anna/choose_modules string network-console
  81. #d-i network-console/authorized_keys_url string http://10.0.0.1/openssh-key
  82. #d-i network-console/password password r00tme
  83. #d-i network-console/password-again password r00tme
  84. ### Mirror settings
  85. # Mirror protocol:
  86. # If you select ftp, the mirror/country string does not need to be set.
  87. # Default value for the mirror protocol: http.
  88. #d-i mirror/protocol string ftp
  89. d-i mirror/country string manual
  90. d-i mirror/http/hostname string deb.debian.org
  91. d-i mirror/http/directory string /debian
  92. d-i mirror/http/proxy string
  93. # Suite to install.
  94. d-i mirror/suite string bookworm
  95. # Suite to use for loading installer components (optional).
  96. #d-i mirror/udeb/suite string testing
  97. ### Account setup
  98. # Skip creation of a root account (normal user account will be able to
  99. # use sudo).
  100. d-i passwd/root-login boolean true
  101. # Alternatively, to skip creation of a normal user account.
  102. d-i passwd/make-user boolean false
  103. # Root password, either in clear text
  104. d-i passwd/root-password password ffho
  105. d-i passwd/root-password-again password ffho
  106. # or encrypted using a crypt(3) hash.
  107. #d-i passwd/root-password-crypted password [crypt(3) hash]
  108. # To create a normal user account.
  109. #d-i passwd/user-fullname string Debian User
  110. #d-i passwd/username string debian
  111. # Normal user's password, either in clear text
  112. #d-i passwd/user-password password insecure
  113. #d-i passwd/user-password-again password insecure
  114. # or encrypted using a crypt(3) hash.
  115. #d-i passwd/user-password-crypted password [crypt(3) hash]
  116. # Create the first user with the specified UID instead of the default.
  117. #d-i passwd/user-uid string 1010
  118. # The user account will be added to some standard initial groups. To
  119. # override that, use this.
  120. #d-i passwd/user-default-groups string audio cdrom video
  121. ### Clock and time zone setup
  122. # Controls whether or not the hardware clock is set to UTC.
  123. d-i clock-setup/utc boolean true
  124. # You may set this to any valid setting for $TZ; see the contents of
  125. # /usr/share/zoneinfo/ for valid values.
  126. d-i time/zone string Europe/Berlin
  127. # Controls whether to use NTP to set the clock during the install
  128. d-i clock-setup/ntp boolean true
  129. # NTP server to use. The default is almost always fine here.
  130. d-i clock-setup/ntp-server string ntp.srv.in.ffho.net
  131. ### Partitioning
  132. ## Partitioning example
  133. # If the system has free space you can choose to only partition that space.
  134. # This is only honoured if partman-auto/method (below) is not set.
  135. #d-i partman-auto/init_automatically_partition select biggest_free
  136. # Alternatively, you may specify a disk to partition. If the system has only
  137. # one disk the installer will default to using that, but otherwise the device
  138. # name must be given in traditional, non-devfs format (so e.g. /dev/sda
  139. # and not e.g. /dev/discs/disc0/disc).
  140. # For example, to use the first SCSI/SATA hard disk:
  141. d-i partman-auto/disk string /dev/sda
  142. # In addition, you'll need to specify the method to use.
  143. # The presently available methods are:
  144. # - regular: use the usual partition types for your architecture
  145. # - lvm: use LVM to partition the disk
  146. # - crypto: use LVM within an encrypted partition
  147. d-i partman-auto/method string regular
  148. # You can define the amount of space that will be used for the LVM volume
  149. # group. It can either be a size with its unit (eg. 20 GB), a percentage of
  150. # free space or the 'max' keyword.
  151. d-i partman-auto-lvm/guided_size string max
  152. # If one of the disks that are going to be automatically partitioned
  153. # contains an old LVM configuration, the user will normally receive a
  154. # warning. This can be preseeded away...
  155. d-i partman-lvm/device_remove_lvm boolean true
  156. # The same applies to pre-existing software RAID array:
  157. d-i partman-md/device_remove_md boolean true
  158. # And the same goes for the confirmation to write the lvm partitions.
  159. d-i partman-lvm/confirm boolean true
  160. d-i partman-lvm/confirm_nooverwrite boolean true
  161. # You can choose one of the three predefined partitioning recipes:
  162. # - atomic: all files in one partition
  163. # - home: separate /home partition
  164. # - multi: separate /home, /var, and /tmp partitions
  165. d-i partman-auto/choose_recipe select atomic
  166. # Or provide a recipe of your own...
  167. # If you have a way to get a recipe file into the d-i environment, you can
  168. # just point at it.
  169. #d-i partman-auto/expert_recipe_file string /hd-media/recipe
  170. # If not, you can put an entire recipe into the preconfiguration file in one
  171. # (logical) line. This example creates a small /boot partition, suitable
  172. # swap, and uses the rest of the space for the root partition:
  173. #d-i partman-auto/expert_recipe string \
  174. # boot-root :: \
  175. # 40 50 100 ext3 \
  176. # $primary{ } $bootable{ } \
  177. # method{ format } format{ } \
  178. # use_filesystem{ } filesystem{ ext3 } \
  179. # mountpoint{ /boot } \
  180. # . \
  181. # 500 10000 1000000000 ext3 \
  182. # method{ format } format{ } \
  183. # use_filesystem{ } filesystem{ ext3 } \
  184. # mountpoint{ / } \
  185. # . \
  186. # 64 512 300% linux-swap \
  187. # method{ swap } format{ } \
  188. # .
  189. # The full recipe format is documented in the file partman-auto-recipe.txt
  190. # included in the 'debian-installer' package or available from D-I source
  191. # repository. This also documents how to specify settings such as file
  192. # system labels, volume group names and which physical devices to include
  193. # in a volume group.
  194. ## Partitioning for EFI
  195. # If your system needs an EFI partition you could add something like
  196. # this to the recipe above, as the first element in the recipe:
  197. # 538 538 1075 free \
  198. # $iflabel{ gpt } \
  199. # $reusemethod{ } \
  200. # method{ efi } \
  201. # format{ } \
  202. # . \
  203. #
  204. # The fragment above is for the amd64 architecture; the details may be
  205. # different on other architectures. The 'partman-auto' package in the
  206. # D-I source repository may have an example you can follow.
  207. # This makes partman automatically partition without confirmation, provided
  208. # that you told it what to do using one of the methods above.
  209. d-i partman-partitioning/confirm_write_new_label boolean true
  210. d-i partman/choose_partition select finish
  211. d-i partman/confirm boolean true
  212. d-i partman/confirm_nooverwrite boolean true
  213. # Force UEFI booting ('BIOS compatibility' will be lost). Default: false.
  214. #d-i partman-efi/non_efi_system boolean true
  215. # Ensure the partition table is GPT - this is required for EFI
  216. #d-i partman-partitioning/choose_label select gpt
  217. #d-i partman-partitioning/default_label string gpt
  218. # When disk encryption is enabled, skip wiping the partitions beforehand.
  219. #d-i partman-auto-crypto/erase_disks boolean false
  220. ## Partitioning using RAID
  221. # The method should be set to "raid".
  222. #d-i partman-auto/method string raid
  223. # Specify the disks to be partitioned. They will all get the same layout,
  224. # so this will only work if the disks are the same size.
  225. #d-i partman-auto/disk string /dev/sda /dev/sdb
  226. # Next you need to specify the physical partitions that will be used.
  227. #d-i partman-auto/expert_recipe string \
  228. # multiraid :: \
  229. # 1000 5000 4000 raid \
  230. # $primary{ } method{ raid } \
  231. # . \
  232. # 64 512 300% raid \
  233. # method{ raid } \
  234. # . \
  235. # 500 10000 1000000000 raid \
  236. # method{ raid } \
  237. # .
  238. # Last you need to specify how the previously defined partitions will be
  239. # used in the RAID setup. Remember to use the correct partition numbers
  240. # for logical partitions. RAID levels 0, 1, 5, 6 and 10 are supported;
  241. # devices are separated using "#".
  242. # Parameters are:
  243. # <raidtype> <devcount> <sparecount> <fstype> <mountpoint> \
  244. # <devices> <sparedevices>
  245. #d-i partman-auto-raid/recipe string \
  246. # 1 2 0 ext3 / \
  247. # /dev/sda1#/dev/sdb1 \
  248. # . \
  249. # 1 2 0 swap - \
  250. # /dev/sda5#/dev/sdb5 \
  251. # . \
  252. # 0 2 0 ext3 /home \
  253. # /dev/sda6#/dev/sdb6 \
  254. # .
  255. # For additional information see the file partman-auto-raid-recipe.txt
  256. # included in the 'debian-installer' package or available from D-I source
  257. # repository.
  258. # This makes partman automatically partition without confirmation.
  259. d-i partman-md/confirm boolean true
  260. d-i partman-partitioning/confirm_write_new_label boolean true
  261. d-i partman/choose_partition select finish
  262. d-i partman/confirm boolean true
  263. d-i partman/confirm_nooverwrite boolean true
  264. ## Controlling how partitions are mounted
  265. # The default is to mount by UUID, but you can also choose "traditional" to
  266. # use traditional device names, or "label" to try filesystem labels before
  267. # falling back to UUIDs.
  268. #d-i partman/mount_style select uuid
  269. ### Base system installation
  270. # Configure APT to not install recommended packages by default. Use of this
  271. # option can result in an incomplete system and should only be used by very
  272. # experienced users.
  273. d-i base-installer/install-recommends boolean false
  274. # The kernel image (meta) package to be installed; "none" can be used if no
  275. # kernel is to be installed.
  276. #d-i base-installer/kernel/image string linux-image-686
  277. ### Apt setup
  278. # Choose, if you want to scan additional installation media
  279. # (default: false).
  280. #d-i apt-setup/cdrom/set-first boolean false
  281. # You can choose to install non-free firmware.
  282. d-i apt-setup/non-free-firmware boolean true
  283. # You can choose to install non-free and contrib software.
  284. d-i apt-setup/non-free boolean true
  285. d-i apt-setup/contrib boolean true
  286. # Uncomment the following line, if you don't want to have the sources.list
  287. # entry for a DVD/BD installation image active in the installed system
  288. # (entries for netinst or CD images will be disabled anyway, regardless of
  289. # this setting).
  290. #d-i apt-setup/disable-cdrom-entries boolean true
  291. # Uncomment this if you don't want to use a network mirror.
  292. d-i apt-setup/use_mirror boolean true
  293. # Select which update services to use; define the mirrors to be used.
  294. # Values shown below are the normal defaults.
  295. d-i apt-setup/services-select multiselect security, updates, backports
  296. d-i apt-setup/security_host string security.debian.org
  297. # Additional repositories, local[0-9] available
  298. #d-i apt-setup/local0/repository string \
  299. # http://local.server/debian stable main
  300. #d-i apt-setup/local0/comment string local server
  301. # Enable deb-src lines
  302. #d-i apt-setup/local0/source boolean true
  303. # URL to the public key of the local repository; you must provide a key or
  304. # apt will complain about the unauthenticated repository and so the
  305. # sources.list line will be left commented out.
  306. #d-i apt-setup/local0/key string http://local.server/key
  307. # or one can provide it in-line by base64 encoding the contents of the
  308. # key file (with `base64 -w0`) and specifying it thus:
  309. #d-i apt-setup/local0/key string base64://LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCi4uLgo=
  310. # The content of the key file is checked to see if it appears to be ASCII-armoured.
  311. # If so it will be saved with an ".asc" extension, otherwise it gets a '.gpg' extension.
  312. # "keybox database" format is currently not supported. (see generators/60local in apt-setup's source)
  313. # By default the installer requires that repositories be authenticated
  314. # using a known gpg key. This setting can be used to disable that
  315. # authentication. Warning: Insecure, not recommended.
  316. #d-i debian-installer/allow_unauthenticated boolean true
  317. # Uncomment this to add multiarch configuration for i386
  318. #d-i apt-setup/multiarch string i386
  319. ### Package selection
  320. tasksel tasksel/first multiselect standard
  321. # Or choose to not get the tasksel dialog displayed at all (and don't install
  322. # any packages):
  323. #d-i pkgsel/run_tasksel boolean false
  324. # Individual additional packages to install
  325. d-i pkgsel/include string openssh-server vim wget python3-requests salt-minion screen
  326. # Whether to upgrade packages after debootstrap.
  327. # Allowed values: none, safe-upgrade, full-upgrade
  328. #d-i pkgsel/upgrade select none
  329. # You can choose, if your system will report back on what software you have
  330. # installed, and what software you use. The default is not to report back,
  331. # but sending reports helps the project determine what software is most
  332. # popular and should be included on the first CD/DVD.
  333. popularity-contest popularity-contest/participate boolean true
  334. ### Boot loader installation
  335. # Grub is the boot loader (for x86).
  336. # This is fairly safe to set, it makes grub install automatically to the UEFI
  337. # partition/boot record if no other operating system is detected on the machine.
  338. d-i grub-installer/only_debian boolean true
  339. # This one makes grub-installer install to the UEFI partition/boot record, if
  340. # it also finds some other OS, which is less safe as it might not be able to
  341. # boot that other OS.
  342. d-i grub-installer/with_other_os boolean false
  343. # Due notably to potential USB sticks, the location of the primary drive can
  344. # not be determined safely in general, so this needs to be specified:
  345. #d-i grub-installer/bootdev string /dev/sda
  346. # To install to the primary device (assuming it is not a USB stick):
  347. #d-i grub-installer/bootdev string default
  348. # Alternatively, if you want to install to a location other than the UEFI
  349. # parition/boot record, uncomment and edit these lines:
  350. #d-i grub-installer/only_debian boolean false
  351. #d-i grub-installer/with_other_os boolean false
  352. #d-i grub-installer/bootdev string (hd0,1)
  353. # To install grub to multiple disks:
  354. #d-i grub-installer/bootdev string (hd0,1) (hd1,1) (hd2,1)
  355. # Optional password for grub, either in clear text
  356. #d-i grub-installer/password password r00tme
  357. #d-i grub-installer/password-again password r00tme
  358. # or encrypted using an MD5 hash, see grub-md5-crypt(8).
  359. #d-i grub-installer/password-crypted password [MD5 hash]
  360. # Use the following option to add additional boot parameters for the
  361. # installed system (if supported by the bootloader installer).
  362. # Note: options passed to the installer will be added automatically.
  363. d-i debian-installer/add-kernel-opts string console=ttyS0,115200
  364. ### Finishing up the installation
  365. # During installations from serial console, the regular virtual consoles
  366. # (VT1-VT6) are normally disabled in /etc/inittab. Uncomment the next
  367. # line to prevent this.
  368. #d-i finish-install/keep-consoles boolean true
  369. # Avoid that last message about the install being complete.
  370. d-i finish-install/reboot_in_progress note
  371. # This will prevent the installer from ejecting the CD during the reboot,
  372. # which is useful in some situations.
  373. #d-i cdrom-detect/eject boolean false
  374. # This is how to make the installer shutdown when finished, but not
  375. # reboot into the installed system.
  376. #d-i debian-installer/exit/halt boolean true
  377. # This will power off the machine instead of just halting it.
  378. #d-i debian-installer/exit/poweroff boolean true
  379. ### Preseeding other packages
  380. # Depending on what software you choose to install, or if things go wrong
  381. # during the installation process, it's possible that other questions may
  382. # be asked. You can preseed those too, of course. To get a list of every
  383. # possible question that could be asked during an install, do an
  384. # installation, and then run these commands:
  385. # debconf-get-selections --installer > file
  386. # debconf-get-selections >> file
  387. #### Advanced options
  388. ### Running custom commands during the installation
  389. # d-i preseeding is inherently not secure. Nothing in the installer checks
  390. # for attempts at buffer overflows or other exploits of the values of a
  391. # preconfiguration file like this one. Only use preconfiguration files from
  392. # trusted locations! To drive that home, and because it's generally useful,
  393. # here's a way to run any shell command you'd like inside the installer,
  394. # automatically.
  395. # This first command is run as early as possible, just after
  396. # preseeding is read.
  397. #d-i preseed/early_command string anna-install some-udeb
  398. # This command is run immediately before the partitioner starts. It may be
  399. # useful to apply dynamic partitioner preseeding that depends on the state
  400. # of the disks (which may not be visible when preseed/early_command runs).
  401. #d-i partman/early_command \
  402. # string debconf-set partman-auto/disk "$(list-devices disk | head -n1)"
  403. # This command is run just before the install finishes, but when there is
  404. # still a usable /target directory. You can chroot to /target and use it
  405. # directly, or use the apt-install and in-target commands to easily install
  406. # packages and run commands in the target system.
  407. #d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh
  408. d-i preseed/late_command string \
  409. in-target wget -P /tmp/ http://{{ provision_fqdn }}/late-command.sh; \
  410. in-target chmod +x /tmp/late-command.sh; \
  411. in-target /tmp/late-command.sh