Skip to content

Instantly share code, notes, and snippets.

@dlundquist
Created April 9, 2015 22:00
Show Gist options
  • Save dlundquist/41b6c2a57deba6915abf to your computer and use it in GitHub Desktop.
Save dlundquist/41b6c2a57deba6915abf to your computer and use it in GitHub Desktop.
label Preseed RAID1
menu label ^Preseed RAID1
menu default
kernel debian-installer/amd64/linux
append vga=788 initrd=debian-installer/amd64/initrd.gz --- auto url=tftp://192.168.99.1/preseed-uefi-raid1.txt debian-installer/language=en debian-installer/locale=en_US keyboard-configuration/layoutcode=us localechooser/translation/warn-light=true localechooser/translation/warn-severe=true netcfg/choose_interface=auto netcfg/hostname='pxeinstalled'
label Preseed RAID5
menu label ^Preseed RAID5
menu default
kernel debian-installer/amd64/linux
append vga=788 initrd=debian-installer/amd64/initrd.gz --- auto url=tftp://192.168.99.1/preseed-uefi-raid5.txt debian-installer/language=en debian-installer/locale=en_US keyboard-configuration/layoutcode=us localechooser/translation/warn-light=true localechooser/translation/warn-severe=true netcfg/choose_interface=auto netcfg/hostname='pxeinstalled'
server=8.8.8.8
server=8.8.4.4
interface=eth1
bind-interfaces
dhcp-range=192.168.99.100,192.168.99.199
dhcp-boot=pxelinux.0
dhcp-match=set:efi-x86_64,option:client-arch,7
dhcp-boot=tag:efi-x86_64,bootnetx64.efi
enable-tftp
tftp-root=/srv/tftp/
menuentry 'Preseed UEFI RAID1' {
set background_color=black
linux /debian-installer/amd64/linux vga=normal --- auto url=tftp://192.168.99.1/preseed-uefi-raid1.txt debian-installer/language=en debian-installer/locale=en_US keyboard-configuration/layoutcode=us localechooser/translation/warn-light=true localechooser/translation/warn-severe=true netcfg/choose_interface=auto netcfg/hostname='pxeinstalled'
initrd /debian-installer/amd64/initrd.gz
}
menuentry 'Preseed UEFI RAID5' {
set background_color=black
linux /debian-installer/amd64/linux vga=normal --- auto url=tftp://192.168.99.1/preseed-uefi-raid5.txt debian-installer/language=en debian-installer/locale=en_US keyboard-configuration/layoutcode=us localechooser/translation/warn-light=true localechooser/translation/warn-severe=true netcfg/choose_interface=auto netcfg/hostname='pxeinstalled'
initrd /debian-installer/amd64/initrd.gz
}
d-i debian-installer/locale string en_US
d-i keyboard-configuration/xkb-keymap select us
d-i netcfg/choose_interface select auto
d-i netcfg/domain string overthere.org
d-i mirror/protocol string http
d-i mirror/country string manual
d-i mirror/http/hostname string http.us.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string http://192.168.4.5:3142
d-i passwd/make-user boolean false
d-i passwd/root-password password r00tme
d-i passwd/root-password-again password r00tme
d-i clock-setup/utc boolean true
d-i time/zone string Etc/UTC
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string 192.168.4.1
d-i partman/confirm_nooverwrite boolean true
d-i partman/confirm boolean true
d-i partman/choose_partition select finish
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-md/confirm boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto-lvm/new_vg_name string vg0
d-i mdadm/boot_degraded boolean true
d-i partman-auto/method string raid
d-i partman-auto/disk string /dev/sda /dev/sdb
d-i partman-auto/expert_recipe string \
uefi-raid-lvm :: \
1 1 1 free \
$gptonly{ } \
$primary{ } \
$lvmignore{ } \
$bios_boot{ } \
method{ biosgrub } \
. \
256 10 256 fat32 \
$gptonly{ } \
$primary{ } \
$lvmignore{ } \
method{ efi } \
format{ } \
. \
256 20 256 raid \
$primary{ } \
$lvmignore{ } \
method{ raid } \
. \
500 10000 -1 raid \
$primary{ } \
$lvmignore{ } \
method{ raid } \
. \
20000 50 20000 ext4 \
$defaultignore{ } \
$lvmok{ } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ / } \
lv_name{ root } \
. \
64 512 150% linux-swap \
$defaultignore{ } \
$lvmok{ } \
method{ swap } \
format{ } \
lv_name{ swap } \
. \
64 9999 - ext4 \
$defaultignore{ } \
$lvmok{ } \
method{ lvm } \
lv_name{ deleteme } \
.
d-i partman-auto-raid/recipe string \
1 2 0 ext4 /boot \
/dev/sda3#/dev/sdb3 \
. \
1 2 0 lvm - \
/dev/sda4#/dev/sdb4 \
.
tasksel tasksel/first multiselect ssh-server
d-i pkgsel/include string curl vim screen sudo vlan ifenslave bridge-utils python2.7
popularity-contest popularity-contest/participate boolean false
d-i grub-installer/only_debian boolean true
d-i finish-install/reboot_in_progress note
d-i preseed/late_command string \
in-target curl -o /tmp/postinstall.sh tftp://192.168.99.1/postinstall.sh; \
in-target /bin/bash /tmp/postinstall.sh
d-i debian-installer/locale string en_US
d-i keyboard-configuration/xkb-keymap select us
d-i netcfg/choose_interface select auto
d-i netcfg/domain string overthere.org
d-i mirror/protocol string http
d-i mirror/country string manual
d-i mirror/http/hostname string http.us.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string http://192.168.4.5:3142
d-i passwd/make-user boolean false
d-i passwd/root-password password r00tme
d-i passwd/root-password-again password r00tme
d-i clock-setup/utc boolean true
d-i time/zone string Etc/UTC
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string 192.168.4.1
d-i partman/confirm_nooverwrite boolean true
d-i partman/confirm boolean true
d-i partman/choose_partition select finish
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-md/confirm boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto-lvm/new_vg_name string vg0
d-i mdadm/boot_degraded boolean true
d-i partman-auto/method string raid
d-i partman-auto/disk string /dev/sda /dev/sdb /dev/sdc /dev/sdd
d-i partman-auto/expert_recipe string \
uefi-raid-lvm :: \
1 1 1 free \
$gptonly{ } \
$primary{ } \
$lvmignore{ } \
$bios_boot{ } \
method{ biosgrub } \
. \
256 10 256 fat32 \
$gptonly{ } \
$primary{ } \
$lvmignore{ } \
method{ efi } \
format{ } \
. \
256 20 256 raid \
$primary{ } \
$lvmignore{ } \
method{ raid } \
. \
500 10000 -1 raid \
$primary{ } \
$lvmignore{ } \
method{ raid } \
. \
20000 50 20000 ext4 \
$defaultignore{ } \
$lvmok{ } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ / } \
lv_name{ root } \
. \
64 512 150% linux-swap \
$defaultignore{ } \
$lvmok{ } \
method{ swap } \
format{ } \
lv_name{ swap } \
. \
64 9999 - ext4 \
$defaultignore{ } \
$lvmok{ } \
method{ lvm } \
lv_name{ deleteme } \
.
d-i partman-auto-raid/recipe string \
1 4 0 ext4 /boot \
/dev/sda3#/dev/sdb3#/dev/sdc3#/dev/sdd3 \
. \
5 4 0 lvm - \
/dev/sda4#/dev/sdb4#/dev/sdc4#/dev/sdd4 \
.
tasksel tasksel/first multiselect ssh-server
d-i pkgsel/include string curl vim screen sudo vlan ifenslave bridge-utils python2.7
popularity-contest popularity-contest/participate boolean false
d-i grub-installer/only_debian boolean true
d-i finish-install/reboot_in_progress note
d-i preseed/late_command string \
in-target curl -o /tmp/postinstall.sh tftp://192.168.99.1/postinstall.sh; \
in-target /bin/bash /tmp/postinstall.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment