From 91c1b2474e2ccda4aef689a35f3491afc4d472fe Mon Sep 17 00:00:00 2001 From: Quentin Smith Date: Sat, 26 May 2018 20:00:02 -0400 Subject: [PATCH] Add Jessie and Xenial preseeds --- code/static/preseed/jessie-amd64.preseed | 1 + code/static/preseed/jessie-i386.preseed | 1 + code/static/preseed/jessie.preseed | 51 ++++++++++++++++++++++++++++++ code/static/preseed/xenial-amd64.preseed | 1 + code/static/preseed/xenial-i386.preseed | 1 + code/static/preseed/xenial.preseed | 39 +++++++++++++++++++++++ 6 files changed, 94 insertions(+) create mode 120000 code/static/preseed/jessie-amd64.preseed create mode 120000 code/static/preseed/jessie-i386.preseed create mode 100644 code/static/preseed/jessie.preseed create mode 120000 code/static/preseed/xenial-amd64.preseed create mode 120000 code/static/preseed/xenial-i386.preseed create mode 100644 code/static/preseed/xenial.preseed diff --git a/code/static/preseed/jessie-amd64.preseed b/code/static/preseed/jessie-amd64.preseed new file mode 120000 index 0000000..bbd7ab4 --- /dev/null +++ b/code/static/preseed/jessie-amd64.preseed @@ -0,0 +1 @@ +jessie.preseed \ No newline at end of file diff --git a/code/static/preseed/jessie-i386.preseed b/code/static/preseed/jessie-i386.preseed new file mode 120000 index 0000000..bbd7ab4 --- /dev/null +++ b/code/static/preseed/jessie-i386.preseed @@ -0,0 +1 @@ +jessie.preseed \ No newline at end of file diff --git a/code/static/preseed/jessie.preseed b/code/static/preseed/jessie.preseed new file mode 100644 index 0000000..af8848e --- /dev/null +++ b/code/static/preseed/jessie.preseed @@ -0,0 +1,51 @@ +# Configure the "keyboard" +d-i keyboard-configuration/xkb-keymap string us + +# Download packages from mirrors.mit.edu +d-i mirror/country string enter information manually +d-i mirror/http/countries string manual +d-i mirror/http/hostname string mirrors.mit.edu +d-i mirror/http/directory string /debian/ +d-i mirror/http/proxy string + +# Use time.mit.edu for NTP syncing +d-i clock-setup/ntp-server string time.mit.edu + +# Guided partitioning with LVM +d-i partman-auto/method string lvm +d-i partman-auto/choose_recipe select atomic +d-i partman-lvm/confirm boolean true +d-i partman-lvm/confirm_nooverwrite boolean true +d-i partman/confirm_write_new_label boolean true +d-i partman/choose_partition select finish +d-i partman/confirm boolean true +d-i partman/confirm_nooverwrite boolean true + +# Use the linux-virtual kernel +d-i base-installer/kernel/image string linux-virtual + +# Create just a root account +d-i passwd/root-login boolean true +d-i passwd/root-password string fake_value +d-i passwd/root-password-again string fake_value +d-i passwd/make-user boolean false + +# Only install the base system +tasksel tasksel/first multiselect Standard system utilities + +# Use GRUB 1 so PyGrub can read the menu.lst +d-i grub-installer/grub2_instead_of_grub_legacy boolean false +# Unfortunately, squeeze's d-i doesn't honor the above key, so we have +# to do it by hand: +d-i grub-installer/skip boolean true +d-i lilo-installer/skip boolean true + +# Remove the root password so users can log in on the console +d-i preseed/late_command string in-target passwd -d root; \ + apt-install grub-legacy; \ + mkdir /target/boot/grub; \ + in-target grub-set-default default; \ + in-target update-grub + +# Avoid that last message about the install being complete. +d-i finish-install/reboot_in_progress note diff --git a/code/static/preseed/xenial-amd64.preseed b/code/static/preseed/xenial-amd64.preseed new file mode 120000 index 0000000..1f0c033 --- /dev/null +++ b/code/static/preseed/xenial-amd64.preseed @@ -0,0 +1 @@ +xenial.preseed \ No newline at end of file diff --git a/code/static/preseed/xenial-i386.preseed b/code/static/preseed/xenial-i386.preseed new file mode 120000 index 0000000..1f0c033 --- /dev/null +++ b/code/static/preseed/xenial-i386.preseed @@ -0,0 +1 @@ +xenial.preseed \ No newline at end of file diff --git a/code/static/preseed/xenial.preseed b/code/static/preseed/xenial.preseed new file mode 100644 index 0000000..9a577e1 --- /dev/null +++ b/code/static/preseed/xenial.preseed @@ -0,0 +1,39 @@ +# Download packages from mirrors.mit.edu +d-i mirror/country string enter information manually +d-i mirror/http/countries string manual +d-i mirror/http/hostname string mirrors.mit.edu +d-i mirror/http/directory string /ubuntu/ +d-i mirror/http/proxy string + +# Use time.mit.edu for NTP syncing +d-i clock-setup/ntp-server string time.mit.edu + +# Guided partitioning with LVM +d-i partman-auto/disk string /dev/xvda +d-i partman-auto/method string lvm +d-i partman-auto/choose_recipe select atomic +d-i partman-lvm/device_remove_lvm boolean true +d-i partman-lvm/confirm boolean true +d-i partman-lvm/confirm_nooverwrite boolean true +d-i partman/confirm_write_new_label boolean true +d-i partman/choose_partition select finish +d-i partman/confirm boolean true +d-i partman/confirm_nooverwrite boolean true + +# Use the linux-virtual kernel +d-i base-installer/kernel/image string linux-virtual + +# Create just a root account +d-i passwd/root-login boolean true +d-i passwd/root-password string fake_value +d-i passwd/root-password-again string fake_value +d-i passwd/make-user boolean false + +# Use GRUB 1 so PyGrub can read the menu.lst +d-i grub-installer/grub2_instead_of_grub_legacy boolean false + +# Remove the root password so users can log in on the console +d-i preseed/late_command string in-target passwd -d root + +# Avoid that last message about the install being complete. +d-i finish-install/reboot_in_progress note -- 1.7.9.5