~wvuloud/loud-platform/lolucid

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
## BEGIN PRESEED
# Set locale
d-i debian-installer/locale string en_US

# keyboard
d-i console-setup/ask_detect boolean false
d-i console-setup/layout string U.S. English
d-i console-setup/variant string U.S. English

# misc. questions
d-i debconf/priority string critical  
d-i kbd-chooser/method string American English
d-i netcfg/get_hostname string FPHOSTNAME
d-i netcfg/choose_interface string auto
d-i prebaseconfig/reboot_in_progress note

# 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 :: 15000 20000 1000000 ext3 $primary{ } $bootable{ } method{ format } format{ } use_filesystem{ } filesystem{ ext3 } mountpoint{ / } . 1023 1024 1025 ext3 $primary{ } method{ keep } format{ } use_filesystem{ } filesystem{ ext3 } mountpoint{ /boot } . 39999 40000 40001 ext3 $primary{ } method{ keep } use_filesystem{ } filesystem{ ext3} . 64 512 300% linux-swap method{ swap } format{ } .
d-i partman-auto/disk string FPINSTDISK
d-i partman/choose_partition select Finish partitioning and write changes to disk
d-i partman/confirm boolean true

# initial user creation
d-i passwd/make-user boolean FPMAKEUSER
passwd passwd/user-fullname string FPFULLNAME
passwd passwd/username string FPUSERNAME
passwd passwd/user-password password FPPASSWORD
passwd passwd/user-password-again password FPPASSWORD

# server install
archive-copier archive-copier/copy boolean false
base-config base-config/package-selection string	
base-config base-config/install-language-support boolean false

# base system
d-i mirror/country string enter information manually
d-i mirror/http/hostname string mirror.lcsee.wvu.edu
d-i mirror/http/directory string /ubuntu
d-i mirror/suite string jaunty

# apt
base-config	apt-setup/country select enter information manually
base-config	apt-setup/hostname string mirror.lcsee.wvu.edu
d-i apt-setup/security_host string mirror.lcsee.wvu.edu
base-config	apt-setup/directory string /ubuntu

# avoid last question
d-i finish-install/reboot_in_progress note

# install base packages
preseed preseed/late_command string \
    sed -i 's/-y/-y --force-yes -o Dpkg::Options::=--force-confnew/' /bin/apt-install; \
    echo "deb http://mirror.lcsee.wvu.edu/lmaniac/ ljaunty-lmaniac/" >> /target/etc/apt/sources.list; \
    in-target apt-get update; \
    apt-install FPDISTBASE-apt;    \
    in-target apt-get update; \
    apt-install FPDISTBASE-base;   \
    in-target autoinstall;
## END PRESEED