### Locale and language d-i debian-installer/locale string en_US.UTF-8 d-i debconf/priority string critical d-i console-setup/ask_detect boolean false d-i console-setup/layoutcode string us d-i pkgsel/language-packs multiselect en ### Networking configuration d-i netcfg/choose_interface select eth0 d-i netcfg/get_hostname string test-system d-i netcfg/get_domain string unassigned-domain ### Partitioning d-i partman-auto/disk string /dev/sda /dev/sdb d-i partman-auto/method string raid d-i partman-md/confirm boolean true d-i partman-partitioning/confirm_write_new_label boolean true d-i partman/confirm_write_new_label boolean true d-i partman-md/device_remove_md boolean true d-i partman-lvm/device_remove_lvm boolean true d-i partman-lvm/device_remove_lvm_span boolean true d-i partman-lvm/confirm boolean true d-i partman/choose_partition select finish d-i partman/confirm_nooverwrite boolean true d-i partman-md/confirm_nooverwrite boolean true d-i partman/confirm boolean true #### Advanced automation # Objective: # One RAID1 array containing the entirety of 2 hard drives (sda & sdb). # Apply LVM across it and set up 2 logical volumes; 1 for / and 1 for swap. # Give 512 MB to swap and the rest to /. #### Define the array (becomes /dev/md0) # Parameters are: # \ # # RAID levels 0, 1, 5, 6 and 10 are supported; devices are separated using "#" # See: http://svn.debian.org/wsvn/d-i/trunk/installer/doc/devel/partman-auto-raid-recipe.txt d-i partman-auto-raid/recipe string \ 1 2 0 lvm - \ /dev/sda1#/dev/sdb1 \ . d-i partman-auto-lvm/new_vg_name string rootvg d-i partman-auto-lvm/guided_size string max #### Create 3 expert recipes # (raid, swap on rootvg/rootlv, and / on rootvg/rootlv) # RAID partitions are tagged as "lvmignore" # and LVM logical volumes as "defaultignore" and "lvmok" # See: http://d-i.alioth.debian.org/svn/debian-installer/installer/doc/devel/partman-auto-recipe.txt d-i partman-auto/expert_recipe string \ multiraid :: \ 100 5000 1000000000 raid \ $lvmignore{ } \ method{ raid } \ . \ 512 5000 512 linux-swap \ $defaultignore{ } \ $lvmok{ } \ in_vg{ rootvg } \ lv_name{ swaplv } \ method{ swap } \ format{ } \ . \ 100 1000 10000000000 ext4 \ $defaultignore{ } \ $lvmok{ } \ $primary{ } \ $bootable{ } \ in_vg{ rootvg } \ lv_name{ rootlv } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext4 } \ mountpoint{ / } \ . # Boot automatically into a degraded array (change as desired) d-i mdadm/boot_degraded true ### Boot loader installation d-i grub-installer/only_debian boolean true d-i grub-installer/with_other_os boolean true d-i grub-pc/install_devices string /dev/sda /dev/sdb grub-installer grub-installer/bootdev string /dev/sda /dev/sdb ### Initial user (ubuntu/ubuntu) # Encrypt/hash p/w when in production d-i passwd/username string ubuntu d-i passwd/user-fullname string ubuntu d-i passwd/user-password password ubuntu d-i passwd/user-password-again password ubuntu d-i user-setup/allow-password-weak boolean true d-i user-setup/encrypt-home boolean false