# skip displaying a list if there is more than one interface.
d-i netcfg/choose_interface select auto
-# To pick a particular interface instead:
-#d-i netcfg/choose_interface select eth1
-
# If you have a slow dhcp server and the installer times out waiting for
# it, this might be useful.
#d-i netcfg/dhcp_timeout string 60
-# If you prefer to configure the network manually, uncomment this line and
-# the static network configuration below.
-#d-i netcfg/disable_dhcp boolean true
-
-# If you want the preconfiguration file to work on systems both with and
-# without a dhcp server, uncomment these lines and the static network
-# configuration below.
-#d-i netcfg/dhcp_failed note
-#d-i netcfg/dhcp_options select Configure network manually
-
# Static network configuration.
#d-i netcfg/get_nameservers string 192.168.1.1
#d-i netcfg/get_ipaddress string 192.168.1.42
#d-i netcfg/get_hostname string vagrant
#d-i netcfg/get_domain string vagrantup.com
-# Disable that annoying WEP key dialog.
-d-i netcfg/wireless_wep string
-# The wacky dhcp hostname that some ISPs use as a password of sorts.
-#d-i netcfg/dhcp_hostname string radish
-
# If non-free firmware is needed for the network or other hardware, you can
# configure the installer to always try to load it, without prompting. Or
# change to false to disable asking.
### Account setup
# Skip creation of a root account (normal user account will be able to
# use sudo).
-d-i passwd/root-login boolean false
+#d-i passwd/root-login boolean false
# Alternatively, to skip creation of a normal user account.
#d-i passwd/make-user boolean false
#tasksel tasksel/desktop multiselect kde, xfce
# Individual additional packages to install
-d-i pkgsel/include string openssh-server ntp acpid sudo bzip2 rsync emacs23-nox vim
+d-i pkgsel/include string openssh-server ntp acpid gpm sudo bzip2 rsync emacs23-nox vim
# Whether to upgrade packages after debootstrap.
# Allowed values: none, safe-upgrade, full-upgrade
# 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
-
-# Alternatively, if you want to install to a location other than the mbr,
-# uncomment and edit these lines:
-#d-i grub-installer/only_debian boolean false
-#d-i grub-installer/with_other_os boolean false
-#d-i grub-installer/bootdev string (hd0,0)
-# To install grub to multiple disks:
-#d-i grub-installer/bootdev string (hd0,0) (hd1,0) (hd2,0)
-
-# Optional password for grub, either in clear text
-#d-i grub-installer/password password r00tme
-#d-i grub-installer/password-again password r00tme
-# or encrypted using an MD5 hash, see grub-md5-crypt(8).
-#d-i grub-installer/password-crypted password [MD5 hash]
-
-### Finishing up the installation
-# During installations from serial console, the regular virtual consoles
-# (VT1-VT6) are normally disabled in /etc/inittab. Uncomment the next
-# line to prevent this.
-#d-i finish-install/keep-consoles boolean true
-
# Avoid that last message about the install being complete.
d-i finish-install/reboot_in_progress note
-# This will prevent the installer from ejecting the CD during the reboot,
-# which is useful in some situations.
-#d-i cdrom-detect/eject boolean false
-
# This is how to make the installer shutdown when finished, but not
# reboot into the installed system.
#d-i debian-installer/exit/halt boolean true
# debconf-get-selections --installer > file
# debconf-get-selections >> file
+# Controlled server environment with minimal dependencies:
+di base-installer/install-recommends false
+
#### Advanced options
### Running custom commands during the installation
# This first command is run as early as possible, just after
# preseeding is read.
# Prevent packaged version of VirtualBox Guest Additions being installed:
-d-i preseed/early_command string sed -i \
- '/in-target/idiscover(){/sbin/discover|grep -v VirtualBox;}' \
- /usr/lib/pre-pkgsel.d/20install-hwpackages
+#d-i preseed/early_command string sed -i \
+# '/in-target/idiscover(){/sbin/discover|grep -v VirtualBox;}' \
+# /usr/lib/pre-pkgsel.d/20install-hwpackages
# This command is run just before the install finishes, but when there is
# still a usable /target directory. You can chroot to /target and use it
# directly, or use the apt-install and in-target commands to easily install
# packages and run commands in the target system.
-
-# Controlled server environment with minimal dependencies:
-di base-installer/install-recommends false
+d-i preseed/late_command string \
+ echo %vagrant ALL=NOPASSWD:ALL > /target/etc/sudoers.d/vagrant; \
+ in-target chmod 0440 /etc/sudoers.d/vagrant