VirtualBox

source: vbox/trunk/src/VBox/Main/UnattendedTemplates/ubuntu_preseed.cfg@ 68126

最後變更 在這個檔案從68126是 68126,由 vboxsync 提交於 7 年 前

Unatteded: Added hostname attribute. Updated debian and ubuntu templates to pick up new properties.

  • 屬性 svn:eol-style 設為 LF
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 3.1 KB
 
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 @@VBOX_INSERT_LOCALE@@
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 @@VBOX_INSERT_HOSTNAME_WITHOUT_DOMAIN@@
22d-i netcfg/get_domain string @@VBOX_INSERT_HOSTNAME_DOMAIN@@
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 @@VBOX_INSERT_TIME_ZONE_UX@@
29@@VBOX_COND_IS_INSTALLING_ADDITIONS@@d-i clock-setup/ntp boolean false@@VBOX_COND_END@@
30@@VBOX_COND_IS_NOT_INSTALLING_ADDITIONS@@d-i clock-setup/ntp boolean true@@VBOX_COND_END@@
31
32# Packages, Mirrors, Image
33d-i base-installer/kernel/override-image string linux-server
34d-i base-installer/kernel/override-image string linux-image-amd64
35## @todo use nearest mirror somehow...
36d-i mirror/country string @@VBOX_INSERT_COUNTRY@@
37d-i mirror/http/proxy string
38## @todo minimal install.
39d-i apt-setup/restricted boolean true
40d-i apt-setup/universe boolean true
41d-i pkgsel/install-language-support boolean false
42
43# Users
44d-i passwd/user-fullname string @@VBOX_INSERT_USER_FULL_NAME@@
45d-i passwd/username string @@VBOX_INSERT_USER_LOGIN@@
46d-i passwd/user-password password @@VBOX_INSERT_USER_PASSWORD@@
47d-i passwd/user-password-again password @@VBOX_INSERT_USER_PASSWORD@@
48d-i passwd/root-login boolean true
49d-i passwd/root-password password @@VBOX_INSERT_ROOT_PASSWORD@@
50d-i passwd/root-password-again password @@VBOX_INSERT_ROOT_PASSWORD@@
51d-i user-setup/allow-password-weak boolean true
52d-i passwd/user-default-groups string admin
53
54# Grub
55d-i grub-installer/grub2_instead_of_grub_legacy boolean true
56d-i grub-installer/only_debian boolean true
57
58# Due notably to potential USB sticks, the location of the MBR can not be
59# determined safely in general, so this needs to be specified:
60#d-i grub-installer/bootdev string /dev/sda
61# To install to the first device (assuming it is not a USB stick):
62d-i grub-installer/bootdev string default
63
64d-i finish-install/reboot_in_progress note
65
66# Custom Commands
67d-i preseed/late_command string cp /cdrom/vboxpostinstall.sh /target/root/vboxpostinstall.sh \
68 && chmod +x /target/root/vboxpostinstall.sh \
69 && /bin/bash /root/vboxpostinstall.sh --preseed-late-command
70
71# Same as above, but for ubiquity.
72ubiquity ubiquity/success_command string vboxpostinstall.sh
73ubiquity ubiquity/success_command string cp /cdrom/vboxpostinstall.sh /target/root/vboxpostinstall.sh \
74 && chmod +x /target/root/vboxpostinstall.sh \
75 && /bin/bash /target/root/vboxpostinstall.sh --ubiquity-success-command
76
77# automatically reboot after installation.
78ubiquity ubiquity/reboot boolean true
79
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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