Created
June 23, 2016 23:52
-
-
Save cedricvidal/eab1578c30b30802eaca403a2dd596d5 to your computer and use it in GitHub Desktop.
Ubuntu 14.04 preseed - Full Disk Encryption
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
choose-mirror-bin mirror/http/proxy string | |
d-i base-installer/kernel/override-image string linux-server | |
d-i clock-setup/utc boolean true | |
d-i clock-setup/utc-auto boolean true | |
d-i finish-install/reboot_in_progress note | |
d-i grub-installer/only_debian boolean true | |
d-i grub-installer/with_other_os boolean true | |
d-i partman-auto-lvm/guided_size string max | |
d-i partman-auto/choose_recipe select custom-lvm | |
d-i partman-auto/method string lvm | |
d-i partman-lvm/confirm boolean true | |
d-i partman-lvm/confirm boolean true | |
d-i partman-lvm/confirm_nooverwrite boolean true | |
d-i partman-lvm/device_remove_lvm boolean true | |
# For LVM partitioning, you can select how much of the volume group to use | |
# for logical volumes. | |
#d-i partman-auto-lvm/guided_size string max | |
d-i partman-auto-lvm/guided_size string 10GB | |
#d-i partman-auto-lvm/guided_size string 50% | |
d-i partman-auto-lvm/new_vg_name string vg-workstation | |
# Or provide a recipe of your own... | |
# If you have a way to get a recipe file into the d-i environment, you can | |
# just point at it. | |
#d-i partman-auto/expert_recipe_file string /hd-media/recipe | |
# If not, you can put an entire recipe into the preconfiguration file in one | |
# (logical) line. This example creates a small /boot partition, suitable | |
# swap, and uses the rest of the space for the root partition: | |
d-i partman-auto/expert_recipe string \ | |
custom-lvm :: \ | |
250 250 250 ext4 $primary{ } $bootable{ } \ | |
mountpoint{ /boot } \ | |
method{ format } \ | |
format{ } \ | |
use_filesystem{ } \ | |
filesystem{ ext4 } \ | |
. \ | |
5120 20480 1000000 ext4 $lvmok{ } \ | |
mountpoint{ / } \ | |
lv_name{ root } \ | |
in_vg { vg-workstation } \ | |
method{ format } \ | |
format{ } \ | |
use_filesystem{ } \ | |
filesystem{ ext4 } \ | |
. \ | |
4096 8192 200% linux-swap $lvmok{ } \ | |
lv_name{ swap } \ | |
in_vg { vg-workstation } \ | |
method{ swap } \ | |
format{ } \ | |
. | |
d-i partman/choose_partition select finish | |
d-i partman/confirm boolean true | |
d-i partman/confirm_nooverwrite boolean true | |
d-i partman/confirm_write_new_label boolean true | |
d-i pkgsel/include string openssh-server cryptsetup build-essential libssl-dev libreadline-dev zlib1g-dev linux-source dkms nfs-common | |
d-i pkgsel/install-language-support boolean false | |
d-i pkgsel/update-policy select unattended-upgrades | |
d-i pkgsel/upgrade select full-upgrade | |
d-i time/zone string UTC | |
tasksel tasksel/first multiselect standard, ubuntu-server | |
d-i console-setup/ask_detect boolean false | |
d-i keyboard-configuration/layoutcode string us | |
d-i keyboard-configuration/modelcode string pc105 | |
d-i debian-installer/locale string en_US | |
# Create vagrant user account. | |
d-i passwd/user-fullname string vagrant | |
d-i passwd/username string vagrant | |
d-i passwd/user-password password vagrant | |
d-i passwd/user-password-again password vagrant | |
d-i user-setup/allow-password-weak boolean true | |
d-i user-setup/encrypt-home boolean false | |
d-i passwd/user-default-groups vagrant sudo | |
d-i passwd/user-uid string 900 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment