source: branches/wsgi/packages/sipb-xen-guest-installer/files/srv/guest-installer/etch/preseed.cfg @ 1242

Last change on this file since 1242 was 231, checked in by price, 17 years ago

prototype fast installer.

To install a distribution on a new volume, we take an existing
installed volume produced with sipb-xen-make-iso, and

  1. copy GRUB's data with dd
  2. frob the partition table with sfdisk, if the disk size is different
  3. make the filesystem
  4. twiddle the hostname and root password and whatever else
  5. make the swap area
  6. boot!

In this prototype, steps 2 and 4 aren't implemented yet;
steps 1, 3, and 5 all use numbers that come from what the
sipb-xen-make-iso etch installer does rather than from
actually reading the partition table; and the whole thing
is just a program in /usr/sbin, not integrated into what
remctl / the web app invoke.

It all takes about thirty seconds (28.0s most recently),
excluding the boot.

File size: 9.4 KB
Line 
1#### Contents of the preconfiguration file
2d-i debian-installer/locale string en_US
3d-i console-keymaps-at/keymap select us
4
5### Network configuration
6# netcfg will choose an interface that has link if possible. This makes it
7# skip displaying a list if there is more than one interface.
8d-i netcfg/choose_interface select auto
9
10#d-i netcfg/dhcp_timeout string 1
11d-i netcfg/use_dhcp boolean true
12
13# Any hostname and domain names assigned from dhcp take precedence over
14# values set here. However, setting the values still prevents the questions
15# from being shown, even if values come from dhcp.
16# at bottom  #d-i netcfg/get_hostname string fillme
17d-i netcfg/get_domain string mit.edu
18
19# Disable that annoying WEP key dialog.
20d-i netcfg/wireless_wep string
21
22### Mirror settings
23# If you select ftp, the mirror/country string does not need to be set.
24#d-i mirror/protocol string ftp
25d-i mirror/country string enter information manually
26d-i mirror/http/hostname string debian.lcs.mit.edu
27d-i mirror/http/directory string /debian
28d-i mirror/http/proxy string
29
30# Suite to install.
31#d-i mirror/suite string testing
32# Suite to use for loading installer components (optional).
33#d-i mirror/udeb/suite string testing
34
35### Partitioning
36# If the system has free space you can choose to only partition that space.
37# Note: this must be preseeded with a localized (translated) value.
38#d-i partman-auto/init_automatically_partition \
39#      select Guided - use the largest continuous free space
40
41# Alternatively, you can specify a disk to partition. The device name
42# can be given in either devfs or traditional non-devfs format.
43# For example, to use the first disk:
44d-i partman-auto/disk string /dev/discs/disc0/disc
45# In addition, you'll need to specify the method to use.
46# The presently available methods are: "regular", "lvm" and "crypto"
47d-i partman-auto/method string regular
48
49# If one of the disks that are going to be automatically partitioned
50# contains an old LVM configuration, the user will normally receive a
51# warning. This can be preseeded away...
52d-i partman-auto/purge_lvm_from_device boolean true
53# And the same goes for the confirmation to write the lvm partitions.
54#d-i partman-lvm/confirm boolean true
55
56# You can choose from any of the predefined partitioning recipes.
57# Note: this must be preseeded with a localized (translated) value.
58d-i partman-auto/choose_recipe \
59       select All files in one partition (recommended for new users)
60#d-i partman-auto/choose_recipe \
61#       select Separate /home partition
62#d-i partman-auto/choose_recipe \
63#       select Separate /home, /usr, /var, and /tmp partitions
64
65# Or provide a recipe of your own...
66# The recipe format is documented in the file devel/partman-auto-recipe.txt.
67# If you have a way to get a recipe file into the d-i environment, you can
68# just point at it.
69#d-i partman-auto/expert_recipe_file string /hd-media/recipe
70
71# If not, you can put an entire recipe into the preconfiguration file in one
72# (logical) line. This example creates a small /boot partition, suitable
73# swap, and uses the rest of the space for the root partition:
74#d-i partman-auto/expert_recipe string                         \
75#      boot-root ::                                            \
76#              40 50 100 ext3                                  \
77#                      $primary{ } $bootable{ }                \
78#                      method{ format } format{ }              \
79#                      use_filesystem{ } filesystem{ ext3 }    \
80#                      mountpoint{ /boot }                     \
81#              .                                               \
82#              500 10000 1000000000 ext3                       \
83#                      method{ format } format{ }              \
84#                      use_filesystem{ } filesystem{ ext3 }    \
85#                      mountpoint{ / }                         \
86#              .                                               \
87#              64 512 300% linux-swap                          \
88#                      method{ swap } format{ }                \
89#              .
90
91# This makes partman automatically partition without confirmation.
92d-i partman/confirm_write_new_label boolean true
93d-i partman/choose_partition \
94       select Finish partitioning and write changes to disk
95d-i partman/confirm boolean true
96
97### Clock and time zone setup
98# Controls whether or not the hardware clock is set to UTC.
99d-i clock-setup/utc boolean true
100
101# You may set this to any valid setting for $TZ; see the contents of
102# /usr/share/zoneinfo/ for valid values.
103d-i time/zone string US/Eastern
104
105### Apt setup
106# You can choose to install non-free and contrib software.
107#d-i apt-setup/non-free boolean true
108#d-i apt-setup/contrib boolean true
109# Uncomment this if you don't want to use a network mirror.
110#d-i apt-setup/use_mirror boolean false
111# Uncomment this to avoid adding security sources, or
112# add a hostname to use a different server than security.debian.org.
113#d-i apt-setup/security_host string
114
115# Additional repositories, local[0-9] available
116#d-i apt-setup/local0/repository string \
117#       deb http://local.server/debian stable main
118#d-i apt-setup/local0/comment string local server
119# Enable deb-src lines
120#d-i apt-setup/local0/source boolean true
121# URL to the public key of the local repository; you must provide a key or
122# apt will complain about the unauthenticated repository and so the
123# sources.list line will be left commented out
124#d-i apt-setup/local0/key string http://local.server/key
125
126# By default the installer requires that repositories be authenticated
127# using a known gpg key. This setting can be used to disable that
128# authentication. Warning: Insecure, not recommended.
129#d-i debian-installer/allow_unauthenticated string true
130
131### Account setup
132# Skip creation of a root account (normal user account will be able to
133# use sudo).
134#d-i passwd/root-login boolean false
135# Alternatively, to skip creation of a normal user account.
136d-i passwd/make-user boolean false
137
138# Root password, either in clear text
139#d-i passwd/root-password password r00tme
140#d-i passwd/root-password-again password r00tme
141# or encrypted using an MD5 hash.
142# at bottom  #d-i passwd/root-password-crypted password [MD5 hash]
143
144# To create a normal user account.
145#d-i passwd/user-fullname string Debian User
146#d-i passwd/username string debian
147# Normal user's password, either in clear text
148#d-i passwd/user-password password insecure
149#d-i passwd/user-password-again password insecure
150# or encrypted using an MD5 hash.
151#d-i passwd/user-password-crypted password [MD5 hash]
152
153### Base system installation
154# Select the initramfs generator used to generate the initrd for 2.6 kernels.
155#d-i base-installer/kernel/linux/initramfs-generators string yaird
156
157### Boot loader installation
158# Grub is the default boot loader (for x86). If you want lilo installed
159# instead, uncomment this:
160#d-i grub-installer/skip boolean true
161
162# This is fairly safe to set, it makes grub install automatically to the MBR
163# if no other operating system is detected on the machine.
164d-i grub-installer/only_debian boolean true
165
166# This one makes grub-installer install to the MBR if it also finds some other
167# OS, which is less safe as it might not be able to boot that other OS.
168d-i grub-installer/with_other_os boolean true
169
170# Alternatively, if you want to install to a location other than the mbr,
171# uncomment and edit these lines:
172#d-i grub-installer/only_debian boolean false
173#d-i grub-installer/with_other_os boolean false
174#d-i grub-installer/bootdev  string (hd0,0)
175# To install grub to multiple disks:
176#d-i grub-installer/bootdev  string (hd0,0) (hd1,0) (hd2,0)
177
178### Package selection
179tasksel tasksel/first multiselect standard
180
181# Individual additional packages to install
182#d-i pkgsel/include string openssh-server build-essential
183
184### Finishing up the first stage install
185# Avoid that last message about the install being complete.
186d-i finish-install/reboot_in_progress note
187
188# This will prevent the installer from ejecting the CD during the reboot,
189# which is useful in some situations.
190#d-i cdrom-detect/eject boolean false
191
192### Preseeding other packages
193# Depending on what software you choose to install, or if things go wrong
194# during the installation process, it's possible that other questions may
195# be asked. You can preseed those too, of course. To get a list of every
196# possible question that could be asked during an install, do an
197# installation, and then run these commands:
198#   debconf-get-selections --installer > file
199#   debconf-get-selections >> file
200
201
202#### Advanced options
203### Running custom commands during the installation
204# d-i preseeding is inherently not secure. Nothing in the installer checks
205# for attempts at buffer overflows or other exploits of the values of a
206# preconfiguration file like this one. Only use preconfiguration files from
207# trusted locations! To drive that home, and because it's generally useful,
208# here's a way to run any shell command you'd like inside the installer,
209# automatically.
210
211# This first command is run as early as possible, just after
212# preseeding is read.
213#d-i preseed/early_command string anna-install some-udeb
214
215# This command is run just before the install finishes, but when there is
216# still a usable /target directory. You can chroot to /target and use it
217# directly, or use the apt-install and in-target commands to easily install
218# packages and run commands in the target system.
219#d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh
220
221
222
223# sipb-xen: automatically filled-in values get appended here.
224# at bottom  #d-i passwd/root-password-crypted password [MD5 hash]
Note: See TracBrowser for help on using the repository browser.