apu-bullseye.txt 20 KB

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