preseed.cfg 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. # Installation Sources
  2. ########################################
  3. ### Mirror settings
  4. d-i mirror/country string manual
  5. d-i mirror/http/hostname string ftp.ch.debian.org
  6. d-i mirror/http/directory string /debian
  7. d-i mirror/http/proxy string
  8. d-i mirror/suite string stable
  9. # security
  10. d-i apt-setup/services-select multiselect security, updates
  11. d-i apt-setup/security_host string security.debian.org
  12. # non-free and contrib
  13. d-i apt-setup/non-free boolean true
  14. d-i apt-setup/contrib boolean true
  15. # Networking
  16. ########################################
  17. # Network Configuration
  18. d-i netcfg/disable_dhcp boolean false
  19. d-i netcfg/choose_interface select auto
  20. d-i netcfg/get_hostname installbox
  21. d-i netcfg/get_domain seen domain.example
  22. # udeb
  23. #######################################
  24. d-i preseed/early_command string \
  25. anna-install fdisk-udeb
  26. # Disk Partitioning/Boot loader
  27. ########################################
  28. # remove existing partitions on first disk (/dev/sda)
  29. d-i preseed partman-lvm/confirm_nooverwrite boolean true
  30. d-i preseed partman-lvm/device_remove_lvm boolean true
  31. d-i partman/early_command string for i in 1 2 3 4 5 6 7 8; \
  32. do if [ "$(fdisk -l /dev/sda | grep /dev/sda$i)" ]; \
  33. then echo -e "d\n$i\nw\n" | fdisk /dev/sda ; fi ; done; exit 0;
  34. d-i partman-auto/init_automatically_partition select biggest_free
  35. d-i partman-auto/choose_recipe select atomic
  36. # automatically partition without confirmation
  37. d-i partman/choose_partition select finish
  38. d-i partman/confirm boolean true
  39. d-i partman/confirm_nooverwrite boolean true
  40. d-i partman/confirm_write_new_label boolean true
  41. # grub
  42. d-i grub-installer/with_other_os boolean true
  43. d-i grub-installer/only_debian boolean true
  44. d-i grub-installer/bootdev string default
  45. # suppress installation finished message
  46. d-i finish-install/reboot_in_progress note
  47. # don't eject cdrom after the installation has finished
  48. d-i cdrom-detect/eject boolean false
  49. # Localizations
  50. ########################################
  51. # keyboard configuration during the installation
  52. d-i debian-installer/locale string en_US.UTF-8
  53. #d-i keyboard-configuration/xkb-keymap select ch
  54. # timezone
  55. d-i tzconfig/gmt boolean true
  56. d-i tzconfig/choose_country_zone/Europe select Zurich
  57. d-i tzconfig/choose_country_zone_single boolean true
  58. d-i time/zone select Europe/Zurich
  59. d-i clock-setup/utc boolean false
  60. d-i clock-setup/ntp boolean true
  61. d-i clock-setup/ntp-server 0.ch.pool.ntp.org
  62. # User Creation
  63. ########################################
  64. # Root User
  65. d-i passwd/root-login boolean false
  66. #d-i passwd/root-password password Jessie
  67. #d-i passwd/root-password-again password Jessie
  68. # User Creation
  69. d-i passwd/make-user boolean true
  70. d-i passwd/user-fullname string Linux User
  71. d-i passwd/username string linuxuser
  72. d-i passwd/user-password password tux
  73. d-i passwd/user-password-again password tux
  74. # The user account will be added to some standard initial groups. To
  75. # override that, use this.
  76. #d-i passwd/user-default-groups string audio cdrom video
  77. # Software Selections
  78. ########################################
  79. # debconf priority in the target system
  80. debconf debconf/priority select critical
  81. # Choose software to install:
  82. tasksel tasksel/first multiselect standard, xfce-desktop, ssh-server, laptop
  83. d-i pkgsel/include string puppet sudo
  84. # allow ctrl+alt+backspace to terminate the X server
  85. keyboard-configuration keyboard-configuration/ctrl_alt_bksp boolean true
  86. # disable predictable network interface names
  87. d-i debian-installer/add-kernel-opts string net.ifnames=0
  88. d-i preseed/late_command string \
  89. mkdir -p /target/tmp/puppet; \
  90. wget --quiet --no-check-certificate https://notabug.org/MarcusMoeller/installbox/raw/master/puppet.tar.gz -O /target/tmp/puppet/puppet.tar.gz; \
  91. tar xvzf /target/tmp/puppet/puppet.tar.gz -C /target/tmp/puppet/; \
  92. in-target puppet apply /tmp/puppet/site.pp --modulepath=/tmp/puppet/modules --verbose --debug --color false; \
  93. rm -rf /target/tmp/puppet/