1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
## Preseed file for ljaunty.
## Partitioning : Root, cache, and swap partition. No prompting.
## Authentication : ldap
## Personality: lcsee-base
## Use in atl or anywhere you want to install from a hard drive
## Set locale
## Setting time zone config
d-i debian-installer/locale string en_US
d-i clock-setup/utc boolean false
d-i time/zone string US/Eastern
## keyboard
d-i console-setup/ask_detect boolean false
d-i console-setup/layout string USA
d-i console-setup/variant string USA
## misc. questions
d-i debconf/priority string critical
d-i netcfg/get_hostname string ubuntu
d-i netcfg/choose_interface select auto
## keep trying dhcp
d-i netcfg/dhcp_timeout string 120
## partitioning
d-i partman-auto/method string regular
d-i partman-auto/expert_recipe string loud :: \
24999 25000 25001 ext3 \
$primary{ } \
$bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ / } . \
40000 70000 1000000 ext3 \
$primary{ } \
method{ keep } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ /media/sda2 } . \
64 512 300% linux-swap \
method{ swap } format{ } .
d-i partman-ext3/no_mount_point false
d-i partman-auto/disk string /dev/sda
d-i partman/choose_partition select Finish partitioning and write changes to disk
d-i partman/confirm boolean true
## Let us sync and become one, shall we?
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server time.lcsee.wvu.edu
## don't create initial user
d-i passwd/make-user boolean false
## doesn't get used but it still asks the questions
passwd passwd/user-fullname string unused
passwd passwd/username string unused
passwd passwd/user-password password unused
passwd passwd/user-password-again password unused
## base system (installer components, and i think the bare base like dpkg etc.)
d-i mirror/country string enter information manually
d-i mirror/http/hostname string mirror.lcsee.wvu.edu
d-i apt-setup/security_host string mirror.lcsee.wvu.edu
d-i mirror/http/directory string /ubuntu
d-i mirror/suite string jaunty
d-i mirror/http/proxy string
# remote installation stuff
d-i network-console/password password foobar
d-i network-console/start note
# Avoid last question
d-i finish-install/reboot_in_progress note
# the most magical line ever -
# First ensures that the cache partiton has a filesystem if it was initially
# created on this install. Afterwards, adds the cache partition to
# /etc/fstab. Next, edits apt-install to play nice with our configuration.
# Then, adds the internal repository to the target installation.
# Finally, installs the base packages for LOUD.
preseed preseed/late_command string \
fsck.ext3 -n /dev/sda2; \
if [ $? -eq 8 ]; then \
mkfs.ext3 -jq /dev/sda2; \
fi; \
mkdir /target/srv/cache; \
mount /dev/sda2 /target/srv/cache; \
sed -i 's/\/media\/sda2/\/srv\/cache/' /target/etc/fstab; \
sed -i 's/-y/-y --force-yes -o Dpkg::Options::=--force-confnew/' /bin/apt-install; \
echo "deb file:/srv/cache/pool atl-repos main universe multiverse" > /target/etc/apt/sources.list; \
wget http://mirror.lcsee.wvu.edu/loud/lcsee_repo.gpg -O /target/etc/apt/lcsee_repo.gpg; \
in-target apt-key add /etc/apt/lcsee_repo.gpg; \
in-target apt-get update; \
apt-install lcsee-base; \
in-target autoinstall; \
in-target apt-get update; \
apt-install lcsee-apt; \
in-target apt-get update;
|