-
-
Save oz123/8437264 to your computer and use it in GitHub Desktop.
working preseed for debian testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# | |
# Preseed for a Debian based machine on kvm | |
# | |
# Boot this file with: press TAB on the installer | |
# add the following to the boot parameters: | |
# | |
# install keymap=en_US locale=en_US netcfg/get_hostname=testserve \ | |
# netcfg/get_domain=carfax.eu preseed/url=http://192.168.XXX.XXX:8000/wheezy.preseed | |
# | |
# | |
# see | |
#### | |
#### Contents of the preconfiguration file (for wheezy) | |
### Localization | |
d-i debian-installer/locale string en_US.UTF-8 | |
d-i debian-installer/keymap select us | |
d-i keymap select us | |
### Network configuration | |
d-i netcfg/choose_interface select auto | |
# | |
# THIS IS IGNORED UNFORTUNATELY IN DEBIAN TESTING! | |
# | |
# set the server name and domain using kernel parameters as mentioned above | |
# | |
# https://bugs.launchpad.net/ubuntu/+source/pxe/+bug/499140 | |
# d-i netcfg/hostname string vagrant-debian-wheezy | |
# d-i netcfg/hostname seen true | |
# | |
# d-i netcfg/get_domain string vagrantup.com | |
# d-i netcfg/get_domain seen true | |
# | |
##################################################### | |
# Any hostname and domain names assigned from dhcp take precedence over | |
# # values set here. However, setting the values still prevents the questions | |
# # from being shown, even if values come from dhcp. | |
#d-i netcfg/get_hostname string debian-dev | |
#d-i netcfg/get_domain string carfax.eu | |
# | |
# If you want to force a hostname, regardless of what either the DHCP | |
# # server returns or what the reverse DNS entry for the IP is, uncomment | |
# # and adjust the following line. | |
#d-i netcfg/get_hostname seen true | |
#d-i netcfg/get_domain seen true | |
#d-i netcfg/hostname string debian-dev | |
### Mirror settings | |
d-i mirror/protocol string http | |
d-i mirror/country string de | |
d-i mirror/http/hostname string ftp2.de.debian.org | |
d-i mirror/http/directory string /debian | |
d-i mirror/suite string testing | |
d-i mirror/http/proxy string | |
### Account setup | |
d-i passwd/make-user boolean false | |
d-i passwd/root-password password password | |
d-i passwd/root-password-again password password | |
### create this password with `openssl passwd -l` | |
d-i passwd/root-password-crypted password $1$ay8lrHfR$iaZqLxVC/T1fGUBtgTBoD0 | |
### Clock and time zone setup | |
d-i clock-setup/utc boolean true | |
d-i time/zone string EU/Berlin | |
d-i clock-setup/ntp boolean true | |
### Partitioning | |
### | |
# WARNING WARNING WARNING see that this is /dev/sda!!! | |
### | |
d-i partman-auto/disk string /dev/sda | |
d-i partman-auto/method string regular | |
d-i partman-auto/choose_recipe select atomic | |
d-i partman-lvm/device_remove_lvm boolean true | |
d-i partman-partitioning/confirm_write_new_label boolean true | |
d-i partman/choose_partition select finish | |
d-i partman/confirm boolean true | |
d-i partman/confirm_nooverwrite boolean true | |
d-i partman-lvm/confirm boolean true | |
d-i partman/mount_style select uuid | |
### | |
# | |
# we stay humble with that package selection, because we'll bootstrap salt | |
# | |
### Package selection | |
tasksel tasksel/first multiselect minimal | |
d-i pkgsel/include string openssh-server | |
d-i pkgsel/upgrade select none | |
popularity-contest popularity-contest/participate boolean false | |
# This is fairly safe to set, it makes grub install automatically to the MBR | |
# # if no other operating system is detected on the machine. | |
d-i grub-installer/only_debian boolean true | |
# | |
# # This one makes grub-installer install to the MBR if it also finds some other | |
# # OS, which is less safe as it might not be able to boot that other OS. | |
d-i grub-installer/with_other_os boolean true | |
d-i grub-installer/bootdev string | |
d-i grub-installer/choose_bootdev select /dev/sda | |
### Misc options | |
# Disable that annoying WEP key dialog. | |
d-i netcfg/wireless_wep string | |
# Allow non-free firmware | |
d-i hw-detect/load_firmware boolean true | |
# Avoid that last message about the install being complete. | |
d-i finish-install/reboot_in_progress note | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment