[94764] | 1 | ### software sources
|
---|
[94748] | 2 | d-i ubiquity/use_nonfree true
|
---|
| 3 | d-i ubiquity/install_oem false
|
---|
| 4 |
|
---|
[67881] | 5 | ### Partitioning
|
---|
| 6 | d-i partman-auto/disk string /dev/sda
|
---|
| 7 | d-i partman-auto/method string regular
|
---|
| 8 | d-i partman-lvm/device_remove_lvm boolean true
|
---|
| 9 | d-i partman-md/device_remove_md boolean true
|
---|
| 10 | d-i partman-auto/choose_recipe select atomic
|
---|
| 11 |
|
---|
| 12 | # This makes partman automatically partition without confirmation
|
---|
| 13 | d-i partman-partitioning/confirm_write_new_label boolean true
|
---|
| 14 | d-i partman/choose_partition select finish
|
---|
| 15 | d-i partman/confirm boolean true
|
---|
| 16 | d-i partman/confirm_nooverwrite boolean true
|
---|
| 17 |
|
---|
| 18 | # Locale
|
---|
[68126] | 19 | d-i debian-installer/locale string @@VBOX_INSERT_LOCALE@@
|
---|
[67881] | 20 | d-i console-setup/ask_detect boolean false
|
---|
| 21 | d-i console-setup/layoutcode string us
|
---|
| 22 | d-i keyboard-configuration/xkb-keymap select us
|
---|
| 23 |
|
---|
| 24 | # Network
|
---|
[68126] | 25 | d-i netcfg/get_hostname string @@VBOX_INSERT_HOSTNAME_WITHOUT_DOMAIN@@
|
---|
| 26 | d-i netcfg/get_domain string @@VBOX_INSERT_HOSTNAME_DOMAIN@@
|
---|
[67881] | 27 | d-i netcfg/choose_interface select auto
|
---|
| 28 |
|
---|
| 29 | # Clock
|
---|
[68164] | 30 | @@VBOX_COND_IS_RTC_USING_UTC@@
|
---|
[67881] | 31 | d-i clock-setup/utc-auto boolean true
|
---|
| 32 | d-i clock-setup/utc boolean true
|
---|
[68164] | 33 | @@VBOX_COND_END@@
|
---|
| 34 | @@VBOX_COND_IS_NOT_RTC_USING_UTC@@
|
---|
| 35 | d-i clock-setup/utc-auto boolean false
|
---|
| 36 | d-i clock-setup/utc boolean false
|
---|
| 37 | @@VBOX_COND_END@@
|
---|
[68114] | 38 | d-i time/zone string @@VBOX_INSERT_TIME_ZONE_UX@@
|
---|
| 39 | @@VBOX_COND_IS_INSTALLING_ADDITIONS@@d-i clock-setup/ntp boolean false@@VBOX_COND_END@@
|
---|
| 40 | @@VBOX_COND_IS_NOT_INSTALLING_ADDITIONS@@d-i clock-setup/ntp boolean true@@VBOX_COND_END@@
|
---|
[67881] | 41 |
|
---|
| 42 | # Packages, Mirrors, Image
|
---|
| 43 | d-i base-installer/kernel/override-image string linux-server
|
---|
| 44 | d-i base-installer/kernel/override-image string linux-image-amd64
|
---|
[68126] | 45 | ## @todo use nearest mirror somehow...
|
---|
| 46 | d-i mirror/country string @@VBOX_INSERT_COUNTRY@@
|
---|
[67881] | 47 | d-i mirror/http/proxy string
|
---|
[68130] | 48 | ## @todo minimal install?
|
---|
[67881] | 49 | d-i apt-setup/restricted boolean true
|
---|
| 50 | d-i apt-setup/universe boolean true
|
---|
| 51 | d-i pkgsel/install-language-support boolean false
|
---|
[79610] | 52 | # Stuff we need to build additions modules:
|
---|
| 53 | d-i pkgsel/include string build-essential linux-headers-generic perl make
|
---|
[87895] | 54 | # Package cloud-init is needed for possible automation the initial setup of virtual machine
|
---|
| 55 | d-i pkgsel/include cloud-init
|
---|
[67881] | 56 |
|
---|
| 57 | # Users
|
---|
[67882] | 58 | d-i passwd/user-fullname string @@VBOX_INSERT_USER_FULL_NAME@@
|
---|
| 59 | d-i passwd/username string @@VBOX_INSERT_USER_LOGIN@@
|
---|
| 60 | d-i passwd/user-password password @@VBOX_INSERT_USER_PASSWORD@@
|
---|
| 61 | d-i passwd/user-password-again password @@VBOX_INSERT_USER_PASSWORD@@
|
---|
[67881] | 62 | d-i passwd/root-login boolean true
|
---|
[67882] | 63 | d-i passwd/root-password password @@VBOX_INSERT_ROOT_PASSWORD@@
|
---|
| 64 | d-i passwd/root-password-again password @@VBOX_INSERT_ROOT_PASSWORD@@
|
---|
[67881] | 65 | d-i user-setup/allow-password-weak boolean true
|
---|
| 66 | d-i passwd/user-default-groups string admin
|
---|
| 67 |
|
---|
| 68 | # Grub
|
---|
| 69 | d-i grub-installer/grub2_instead_of_grub_legacy boolean true
|
---|
| 70 | d-i grub-installer/only_debian boolean true
|
---|
| 71 |
|
---|
[93957] | 72 | @@VBOX_COND[${GUEST_OS_VERSION} vge 14.04 && ${GUEST_OS_VERSION} vle 15.04]@@
|
---|
[67881] | 73 | # Due notably to potential USB sticks, the location of the MBR can not be
|
---|
| 74 | # determined safely in general, so this needs to be specified:
|
---|
[93957] | 75 | # grub-install fails on [14.04.0, 15.04] by complaining "not being able to find default".
|
---|
| 76 | # pointing it to /dev/sda gets around that problem.
|
---|
| 77 | d-i grub-installer/bootdev string /dev/sda
|
---|
| 78 | @@VBOX_COND_ELSE@@
|
---|
[67881] | 79 | # To install to the first device (assuming it is not a USB stick):
|
---|
| 80 | d-i grub-installer/bootdev string default
|
---|
[93957] | 81 | @@VBOX_COND_END@@
|
---|
[67881] | 82 |
|
---|
| 83 | d-i finish-install/reboot_in_progress note
|
---|
| 84 |
|
---|
| 85 | # Custom Commands
|
---|
[68071] | 86 | d-i preseed/late_command string cp /cdrom/vboxpostinstall.sh /target/root/vboxpostinstall.sh \
|
---|
| 87 | && chmod +x /target/root/vboxpostinstall.sh \
|
---|
[68087] | 88 | && /bin/bash /root/vboxpostinstall.sh --preseed-late-command
|
---|
[68057] | 89 |
|
---|
| 90 | # Same as above, but for ubiquity.
|
---|
[68087] | 91 | ubiquity ubiquity/success_command string vboxpostinstall.sh
|
---|
[68071] | 92 | ubiquity ubiquity/success_command string cp /cdrom/vboxpostinstall.sh /target/root/vboxpostinstall.sh \
|
---|
| 93 | && chmod +x /target/root/vboxpostinstall.sh \
|
---|
[68087] | 94 | && /bin/bash /target/root/vboxpostinstall.sh --ubiquity-success-command
|
---|
[68057] | 95 |
|
---|
[68087] | 96 | # automatically reboot after installation.
|
---|
| 97 | ubiquity ubiquity/reboot boolean true
|
---|
| 98 |
|
---|
[79419] | 99 | ## Skip downloading updates during installation (better for testing).
|
---|
| 100 | # Seems this doesn't make any difference, so why bother.
|
---|
| 101 | #ubiquity ubiquity/download_updates boolean false
|
---|