VirtualBox

source: vbox/trunk/src/VBox/Installer/common/unattended_templates/debian_preseed.cfg@ 67939

Last change on this file since 67939 was 67882, checked in by vboxsync, 8 years ago

UnattendedScript: Converted preseed editor and templates to mad libs too.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1### Partitioning
2d-i partman-auto/disk string /dev/sda
3d-i partman-auto/method string regular
4d-i partman-lvm/device_remove_lvm boolean true
5d-i partman-md/device_remove_md boolean true
6d-i partman-auto/choose_recipe select atomic
7
8# This makes partman automatically partition without confirmation
9d-i partman-partitioning/confirm_write_new_label boolean true
10d-i partman/choose_partition select finish
11d-i partman/confirm boolean true
12d-i partman/confirm_nooverwrite boolean true
13
14# Locale
15d-i debian-installer/locale string en_US
16d-i console-setup/ask_detect boolean false
17d-i console-setup/layoutcode string us
18d-i keyboard-configuration/xkb-keymap select us
19
20# Network
21d-i netcfg/get_hostname string ubuntu
22d-i netcfg/get_domain string virtualMachine
23d-i netcfg/choose_interface select auto
24
25# Clock
26d-i clock-setup/utc-auto boolean true
27d-i clock-setup/utc boolean true
28d-i time/zone string US/Pacific
29d-i clock-setup/ntp boolean true
30
31# Packages, Mirrors, Image
32d-i base-installer/kernel/override-image string linux-server
33d-i base-installer/kernel/override-image string linux-image-amd64
34d-i mirror/country string US
35d-i mirror/http/proxy string
36d-i apt-setup/restricted boolean true
37d-i apt-setup/universe boolean true
38d-i pkgsel/install-language-support boolean false
39
40# Users
41d-i passwd/user-fullname string @@VBOX_INSERT_USER_FULL_NAME@@
42d-i passwd/username string @@VBOX_INSERT_USER_LOGIN@@
43d-i passwd/user-password password @@VBOX_INSERT_USER_PASSWORD@@
44d-i passwd/user-password-again password @@VBOX_INSERT_USER_PASSWORD@@
45d-i passwd/root-login boolean true
46d-i passwd/root-password password @@VBOX_INSERT_ROOT_PASSWORD@@
47d-i passwd/root-password-again password @@VBOX_INSERT_ROOT_PASSWORD@@
48d-i user-setup/allow-password-weak boolean true
49d-i passwd/user-default-groups string admin
50
51# Grub
52d-i grub-installer/grub2_instead_of_grub_legacy boolean true
53d-i grub-installer/only_debian boolean true
54
55# Due notably to potential USB sticks, the location of the MBR can not be
56# determined safely in general, so this needs to be specified:
57#d-i grub-installer/bootdev string /dev/sda
58# To install to the first device (assuming it is not a USB stick):
59d-i grub-installer/bootdev string default
60
61d-i finish-install/reboot_in_progress note
62
63# Custom Commands
64d-i preseed/late_command string \
65mkdir /target/postinstall; \
66cd /target/postinstall; \
67touch post-install.sh; \
68echo '#!/bin/bash' >> post-install.sh; \
69echo 'apt-get -y install build-essential' >> post-install.sh; \
70echo 'apt-get -y install linux-headers-$(uname -r)' >> post-install.sh; \
71@@VBOX_COND_IS_INSTALLING_ADDITIONS@@echo 'mkdir /mnt/cdrom' >> post-install.sh; \
72echo 'echo' >> post-install.sh; \
73echo 'echo "Installing VirtualBox Guest Additions..."' >> post-install.sh; \
74echo 'mount -t iso9660 -o ro /dev/sr1 /mnt/cdrom' >> post-install.sh; \
75echo 'bash /mnt/cdrom/VBoxLinuxAdditions.run' >> post-install.sh; \
76echo 'usermod -a -G vboxsf @@VBOX_INSERT_USER_LOGIN@@' >> post-install.sh; \
77echo 'eject /dev/sr0' >> post-install.sh; \
78@@VBOX_COND_END@@echo 'exit 0' >> post-install.sh; \
79chroot /target chmod +x /postinstall/post-install.sh; \
80chroot /target /bin/bash /postinstall/post-install.sh
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette