From 47a2efec813182d563cd266fc52804428a52dbfe Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Tue, 9 Feb 2021 16:09:46 -0700 Subject: [PATCH] working preseeds for two devices --- ipxe-c3.small.x86 | 20 ++++++++++++++ ipxe-m3.large.x86 | 20 ++++++++++++++ preseed-c3.small.x86.cfg | 51 +++++++++++++++++++++++++++++++++++ preseed-m3.large.x86.cfg | 58 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 149 insertions(+) create mode 100644 ipxe-c3.small.x86 create mode 100644 ipxe-m3.large.x86 create mode 100644 preseed-c3.small.x86.cfg create mode 100644 preseed-m3.large.x86.cfg diff --git a/ipxe-c3.small.x86 b/ipxe-c3.small.x86 new file mode 100644 index 0000000..8c136fe --- /dev/null +++ b/ipxe-c3.small.x86 @@ -0,0 +1,20 @@ +#!ipxe + +dhcp + +set base-url http://ftp.debian.org/debian/dists/buster/main/installer-amd64/current/images/netboot/debian-installer/amd64/ + +set preseed-url https://code.forksand.com/forksand/eqx/raw/branch/master/preseed.cfg +# XXX Set preseed md5 sum +#set preseed-url-checksum a6bec490964ddb13db456383132a8e62 + +set kern-opts DEBIAN_FRONTEND=noninteractive console=tty1 console=ttyS1,115200n8 install vga=0 fb=none nomodeset debug auto=true priority=high locale=en_US.UTF-8 keymap=us language=us country=US + +# Boot Installer Kernel with Preseed +kernel ${base-url}/linux preseed/url=${preseed-url} ${kern-opts} --- +# XXX add updated preseed checksum to kern opts: +#kernel ${base-url}/linux preseed/url=${preseed-url} preseed/url/checksum=${preseed-url-checksum} ${kern-opts} --- +initrd ${base-url}/initrd.gz + +boot + diff --git a/ipxe-m3.large.x86 b/ipxe-m3.large.x86 new file mode 100644 index 0000000..8c136fe --- /dev/null +++ b/ipxe-m3.large.x86 @@ -0,0 +1,20 @@ +#!ipxe + +dhcp + +set base-url http://ftp.debian.org/debian/dists/buster/main/installer-amd64/current/images/netboot/debian-installer/amd64/ + +set preseed-url https://code.forksand.com/forksand/eqx/raw/branch/master/preseed.cfg +# XXX Set preseed md5 sum +#set preseed-url-checksum a6bec490964ddb13db456383132a8e62 + +set kern-opts DEBIAN_FRONTEND=noninteractive console=tty1 console=ttyS1,115200n8 install vga=0 fb=none nomodeset debug auto=true priority=high locale=en_US.UTF-8 keymap=us language=us country=US + +# Boot Installer Kernel with Preseed +kernel ${base-url}/linux preseed/url=${preseed-url} ${kern-opts} --- +# XXX add updated preseed checksum to kern opts: +#kernel ${base-url}/linux preseed/url=${preseed-url} preseed/url/checksum=${preseed-url-checksum} ${kern-opts} --- +initrd ${base-url}/initrd.gz + +boot + diff --git a/preseed-c3.small.x86.cfg b/preseed-c3.small.x86.cfg new file mode 100644 index 0000000..acf8bb5 --- /dev/null +++ b/preseed-c3.small.x86.cfg @@ -0,0 +1,51 @@ +d-i debian-installer/locale string en_US.UTF-8 +d-i debian-installer/language string en +d-i debian-installer/country string US +d-i keyboard-configuration/xkb-keymap select us +d-i netcfg/choose_interface select auto +d-i netcfg/get_hostname string unassigned-hostname +d-i netcfg/get_domain string unassigned-domain +d-i netcfg/wireless_wep string +d-i anna/choose_modules string network-console +d-i network-console/authorized_keys_url string https://util.forksand.com/id_ed25519-eqx.pub +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 +d-i passwd/root-password-crypted password $6$SDZfbkZcl49p$oiZg0COlkdrBMWIN9AmyZ4EYQ/LWh5oOkipBM5aRuuOn0/FCKCmR9PpiwPqaMCIvgpHUj31gKXmIKA/gwGzNh1 +d-i passwd/user-fullname string Debian User +d-i passwd/username string debian +d-i passwd/user-password-crypted password $6$6wF7qmBs$tPwXIyZOZs1o8UzCKkg2XD35WHjMWpPe33t62RkrnD1Rn1GQlLgN28eJmO6TULGSfxsBOjq.LUHUSccX2p9JR/ +d-i clock-setup/utc boolean true +d-i time/zone string UTC +d-i clock-setup/ntp boolean true +d-i partman-auto/disk string /dev/sda +d-i partman-auto/method string lvm +d-i partman-auto-lvm/guided_size string max +d-i partman-lvm/device_remove_lvm boolean true +d-i partman-md/device_remove_md boolean true +d-i partman-lvm/confirm boolean true +d-i partman-lvm/confirm_nooverwrite boolean true +d-i partman-auto/choose_recipe select atomic +d-i partman-partitioning/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 +d-i partman-md/confirm boolean true +d-i partman-partitioning/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 +d-i base-installer/install-recommends boolean false +tasksel tasksel/first multiselect standard +d-i pkgsel/include string openssh-server sudo iptables apt-transport-https bzip2 ca-certificates colordiff cpufrequtils curl debian-archive-keyring exuberant-ctags git haveged host less locales lsb-release lshw net-tools ntp rsync telnet traceroute vim vim-scripts +d-i pkgsel/upgrade select full-upgrade +popularity-contest popularity-contest/participate boolean false +d-i grub-installer/only_debian boolean true +d-i grub-installer/with_other_os boolean true +d-i grub-installer/bootdev string default +d-i debian-installer/add-kernel-opts string console=tty0 console=ttyS1,115200n8 ipv6.disable=1 +d-i finish-install/keep-consoles boolean true +d-i finish-install/reboot_in_progress note +#d-i preseed/run string https://code.forksand.com/forksand/eqx/raw/branch/master/preseed-late.sh + diff --git a/preseed-m3.large.x86.cfg b/preseed-m3.large.x86.cfg new file mode 100644 index 0000000..e045ece --- /dev/null +++ b/preseed-m3.large.x86.cfg @@ -0,0 +1,58 @@ +d-i debian-installer/locale string en_US.UTF-8 +d-i debian-installer/language string en +d-i debian-installer/country string US +d-i keyboard-configuration/xkb-keymap select us +d-i netcfg/choose_interface select auto +d-i netcfg/get_hostname string unassigned-hostname +d-i netcfg/get_domain string unassigned-domain +d-i netcfg/wireless_wep string +d-i anna/choose_modules string network-console +d-i network-console/authorized_keys_url string https://util.forksand.com/id_ed25519-eqx.pub +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 +d-i passwd/root-password-crypted password $6$SDZfbkZcl49p$oiZg0COlkdrBMWIN9AmyZ4EYQ/LWh5oOkipBM5aRuuOn0/FCKCmR9PpiwPqaMCIvgpHUj31gKXmIKA/gwGzNh1 +d-i passwd/user-fullname string Debian User +d-i passwd/username string debian +d-i passwd/user-password-crypted password $6$6wF7qmBs$tPwXIyZOZs1o8UzCKkg2XD35WHjMWpPe33t62RkrnD1Rn1GQlLgN28eJmO6TULGSfxsBOjq.LUHUSccX2p9JR/ +d-i clock-setup/utc boolean true +d-i time/zone string UTC +d-i clock-setup/ntp boolean true + +# Set simple partition +d-i partman-auto/disk string /dev/sda +d-i partman-auto/select_disk select /dev/sda +d-i partman-lvm/device_remove_lvm boolean true +d-i partman-md/device_remove_md boolean true +d-i partman-auto/choose_recipe select atomic +d-i partman-partitioning/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 +d-i partman-auto/method string regular +d-i partman-auto/choose_recipe select multi +d-i partman-partitioning/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 + +d-i base-installer/install-recommends boolean false +tasksel tasksel/first multiselect standard +d-i pkgsel/include string openssh-server sudo iptables apt-transport-https bzip2 ca-certificates colordiff cpufrequtils curl debian-archive-keyring exuberant-ctags git haveged host less locales lsb-release lshw net-tools nvme-cli ntp parted rsync telnet traceroute vim vim-scripts +d-i pkgsel/upgrade select full-upgrade +popularity-contest popularity-contest/participate boolean false +d-i grub-installer/only_debian boolean true +d-i grub-installer/with_other_os boolean true +#d-i grub-installer/bootdev string default +d-i grub-installer/bootdev string /dev/sda +#d-i grub-pc grub-pc/install_devices string /dev/sda +d-i debian-installer/add-kernel-opts string console=tty0 console=ttyS1,115200n8 ipv6.disable=1 +d-i finish-install/keep-consoles boolean true +d-i finish-install/reboot_in_progress note +#d-i preseed/run string https://code.forksand.com/forksand/eqx/raw/branch/master/preseed-late.sh + + + + +