Add script for usb bootable support
[icn.git] / tools / ubuntu / preseed / ubuntu-server.seed
1 #locate
2 d-i debian-installer/locale string en_US
3 d-i console-tools/archs select true
4 d-i debian-installer/language string en
5 d-i debian-installer/country string us
6 d-i localechooser/supported-locales multiselect en_US.UTF-8, zh_CN.UTF-8
7
8 #keyboard
9 d-i console-setup/ask_detect boolean false
10 d-i console-configuration/layoutcode string us
11 d-i keyboard-configuration/modelcode string SKIP
12
13 #clock
14 d-i clock-setup/utc boolean false
15 d-i time/zone string Asia/Shanghai
16 d-i clock-setup/ntp-server string ntp.example.com
17
18 #network
19 d-i netcfg/choose_interface select auto
20 d-i netcfg/dhcp_failed note
21 d-i netcfg/dhcp_options select Do not configure the network at this time
22 d-i netcfg/get_hostname string infra-controller
23 # d-i netcfg/get_domain string intel-domain
24 d-i netcfg/wireless_wep string
25 d-i netcfg/dhcp_timeout string 3
26 d-i netcfg/dhcpv6_timeout string 3
27
28 # Mirror
29
30 d-i pkgsel/language-pack-patterns       string
31 d-i pkgsel/install-language-support     boolean false
32 d-i apt-setup/partner boolean true
33 d-i debian-installer/splash     boolean false
34 d-i oem-config-udeb/frontend    string debconf
35 d-i mirror/http/proxy string
36
37 # clock
38 d-i clock-setup/ntp boolean true
39 d-i clock-setup/ntp-server string ntp.example.com
40
41 #user
42 d-i passwd/root-login boolean false
43 d-i passwd/make-user boolean true
44 d-i passwd/user-fullname string icn
45 d-i passwd/username string icn
46 d-i passwd/user-password password icn
47 d-i passwd/user-password-again password icn
48 d-i user-setup/allow-password-weak boolean true
49 d-i user-setup/encrypt-home boolean false
50
51 #disk
52 #d-i s390-dasd/dasd string 0.0.0300,0.0.0400,0.0.0500
53 #d-i s390-dasd/auto-format boolean true
54 #d-i s390-dasd/force-format boolean true
55
56 d-i partman-auto/init_automatically_partitioin select biggest_free
57 #d-i partman-auto/disk string /dev/sda
58 # add "umount" workaround to address the debian-installer bug
59 # https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1347726
60 d-i preseed/early_command string umount /media || true
61 d-i partman/early_command \
62     string debconf-set partman-auto/disk "$(echo /dev/`ls -l /sys/block/[vhs]d* | grep -v "usb" | head -n1 | sed 's/^.*\([hs]d[a-z]\+\).*$/\1/'`)"
63 d-i partman-auto/method string lvm
64 d-i partman-lvm/device_remove_lvm boolean true
65 d-i partman-md/device_remove_md boolean true
66 d-i partman-lvm/confirm boolean true
67 d-i partman-lvm/confirm_nooverwrite boolean true
68 d-i partman-auto-lvm/guided_size string max
69 d-i partman-auto/choose_recipe select atomic
70 d-i partman-partitioning/confirm_write_new_label boolean true
71 d-i partman/choose_partition select finish
72 d-i partman/confirm boolean true
73 d-i partman/confirm_nooverwrite boolean true
74
75 #basic system
76 #d-i base-installer/kernel/linux/initramfs-generators string yaird
77
78 #package
79 tasksel tasksel/first multiselect standard
80 d-i pkgsel/include string openssh-server        vim
81 d-i pkgsel/update-policy select none
82
83 #grub
84 d-i grub-installer/only_debian boolean true
85 d-i grub-installer/with_other_os boolean true
86 d-i grub-installer/bootdev  string default
87
88 # copy files into the ISO
89 d-i preseed/late_command string cp -r /cdrom/icn /target/opt/icn ; cp -r /cdrom/pool/main/* /target/opt/icn/apt/deb/
90
91 # Finish
92 d-i finish-install/reboot_in_progress note
93 oem-config      oem-config/steps        multiselect language, timezone, keyboard, user, network, tasksroot