From 88d59daa5014738e01fea747d244a01d6aa0bd84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20S=C5=82owik?= Date: Thu, 3 Aug 2023 16:06:29 +0200 Subject: [PATCH] Add support for Debian 12 amd64 --- 12-amd64.cfg | 42 ++++++++++++++++++++++++++++++++++++++++++ preseed_install.py | 1 + 2 files changed, 43 insertions(+) create mode 100644 12-amd64.cfg diff --git a/12-amd64.cfg b/12-amd64.cfg new file mode 100644 index 0000000..62fdcab --- /dev/null +++ b/12-amd64.cfg @@ -0,0 +1,42 @@ +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/get_hostname string debian +d-i netcfg/get_domain string localdomain + +d-i hw-detect/load_firmware boolean false + +d-i mirror/protocol string http +d-i mirror/suite string bookworm + +d-i passwd/root-password password root +d-i passwd/root-password-again password root +d-i passwd/user-fullname string test +d-i passwd/username string test +d-i passwd/user-password password test +d-i passwd/user-password-again password test +d-i passwd/user-default-groups string sudo + +d-i clock-setup/utc boolean true +d-i time/zone string Europe/Warsaw +d-i clock-setup/ntp boolean false + +d-i partman-auto/method string regular +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 base-installer/kernel/image string linux-image-amd64 + +tasksel tasksel/first multiselect standard ssh-server +d-i pkgsel/upgrade select full-upgrade +d-i pkgsel/include string sudo + +d-i grub-installer/only_debian boolean true +d-i grub-installer/bootdev string default + +d-i finish-install/reboot_in_progress note +d-i debian-installer/exit/poweroff boolean true diff --git a/preseed_install.py b/preseed_install.py index f611197..4ffeb4c 100755 --- a/preseed_install.py +++ b/preseed_install.py @@ -101,6 +101,7 @@ def iso_get_boot_filenames(iso_filename: str) -> Tuple[str, str]: (10, "arm64"): ("/install.a64/vmlinuz", "/install.a64/initrd.gz"), (10, "armhf"): ("/install.ahf/cdrom/vmlinuz", "/install.ahf/cdrom/initrd.gz"), (11, "amd64"): ("/install.amd/vmlinuz", "/install.amd/initrd.gz"), + (12, "amd64"): ("/install.amd/vmlinuz", "/install.amd/initrd.gz"), } version = get_debian_version(iso_filename) arch = get_debian_architecture(iso_filename)